Skip to content

Instantly share code, notes, and snippets.

@jj-github-jj
Last active December 28, 2021 02:48
Show Gist options
  • Save jj-github-jj/306843edb3317d8dececf46b8ea7d3ae to your computer and use it in GitHub Desktop.
Save jj-github-jj/306843edb3317d8dececf46b8ea7d3ae to your computer and use it in GitHub Desktop.
jupyter environment copy installed modules to another system
!jupyter --data-dir
#!pip install datamodel-code-generator
!pip install pandasgui
!pip install quantiphy
!pip install plotly.express
!pip install scikit-rf
!pip install nptdms
!pip install cufflinks
#stop at a cell
raise SystemExit("Stop right there!")
import IPython
IPython.version_info
!pip install qgrid
jupyter nbextension enable --py --sys-prefix qgrid
!pip install qgrid
jupyter nbextension enable --py --sys-prefix qgrid
#copying required installed module to another system
!pip freeze > installed_modules.txt
#on
!pip install -r installed_modules.txt
#current ipynb file name using
#!pip install ipynbname
import ipynbname
nb_fname = ipynbname.name()
nb_fname+'.ipynb'
nb_path=ipynbname.path()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment