File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,8 @@ def extract_shell_commands(notebook_path: str) -> List[str]:
7878 "mv" ,
7979 "unzip" ,
8080 "tar" ,
81+ "apt-get" ,
82+ "apt" ,
8183 ]
8284
8385 for cell in notebook .get ("cells" , []):
@@ -250,20 +252,20 @@ def main():
250252 success_count = 0
251253 total_count = 0
252254
253- if pip_commands :
254- print (f"\n Executing { len (pip_commands )} pip install commands..." )
255- for cmd in pip_commands :
256- if execute_pip_command (cmd , args .verbose ):
257- success_count += 1
258- total_count += 1
259-
260255 if shell_commands :
261256 print (f"\n Executing { len (shell_commands )} shell commands..." )
262257 for cmd in shell_commands :
263258 if execute_shell_command (cmd , args .verbose ):
264259 success_count += 1
265260 total_count += 1
266261
262+ if pip_commands :
263+ print (f"\n Executing { len (pip_commands )} pip install commands..." )
264+ for cmd in pip_commands :
265+ if execute_pip_command (cmd , args .verbose ):
266+ success_count += 1
267+ total_count += 1
268+
267269 if total_count > 0 :
268270 print (
269271 f"\n Execution summary: { success_count } /{ total_count } commands succeeded"
You can’t perform that action at this time.
0 commit comments