Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jupyter #notebook #pass #python #variable #shell
ADD COMMENT
Topic
Name
9+1 =