Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 428 Bytes

jupyter.md

File metadata and controls

14 lines (10 loc) · 428 Bytes
  • install the kernel in jupyter relative to the conda environment

python -m ipykernel install --user --name env-jup --display-name env-jup

  • import library from a repo :
GONZAG_DIR = '/home/jovyan/gonzag_cloud/gonzag' ; # get it there: https://github.com/brodeau/climporn
sys.path.append(GONZAG_DIR)
import gonzag as gz
  • convert notebook to script :

jupyter nbconvert --to script 'my-notebook.ipynb'