Answers for "jupyter use variable in shell command"

2

jupyter notebook pass python variable to shell

dir_path = "/home/foo/bar"
!cp file1 $dir_path

dir_path = "/home/foo/bar"
!cp file1 {dir_path}

!cp file1 {dir_path + sub_dir}
Posted by: Guest on January-21-2021

Code answers related to "jupyter use variable in shell command"

Python Answers by Framework

Browse Popular Code Answers by Language