Answers for "use python variable in shell command jupyter"

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 "use python variable in shell command jupyter"

Python Answers by Framework

Browse Popular Code Answers by Language