Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.33 KB

jupyter.md

File metadata and controls

33 lines (23 loc) · 1.33 KB

Jupyter

Locally

  • if not done yet, install conda https://www.continuum.io/downloads
  • jupyter is already installed with anaconda2 distribution
  • run jupyter-notebook, it will open a window in your browser

On meolkerg, with outputs locally

  • create a directory notebooks on meolkerg

  • run jupyter-notebook on meolkerg with this command : jupyter-notebook --port=8888 --ip=* --no-browser --notebook-dir notebooks

  • launch locally this ssh command : ssh -L 8888:localhost:9999 -N -t -x [email protected]

  • finally in your local browser, open localhost:9999

  • Do not forget to shut down the scripts in the the front page after closing them, or you will have to kill the processor

Trucs et astuce

  • Quand un module ne se charge pas alors que l'install conda est ok, relancer jupyter-notebook, et surtout le rajouter localement avec

      import sys
      print(sys.path)
      sys.path.insert(0,"/home/albert/lib/python")
    
  • relancer l'output d'une cellule précedente : _7 : output idem que cellule 7

  • afficher les versions des outils utilisés

Faire une présentation en jupyter

  • git clone https://github.com/hakimel/reveal.js
  • open a jupyter notebook
  • prepare slides with View -> Cell Toolbar -> Slideshow
  • run jupyter-nbconvert --to slides slideshow.ipynb --reveal-prefix=reveal.js --post serve