Jupyter Enviroment

Basics

  • Ipython vs Python
  • How to start a notebook: ipython notebook
  • Main page:
    • Files
    • Running
    • Clusters
  • Functions of the index page: create, run, shutdown and delete a notebook
  • Automatic saves and checkpoints (Version Control)
  • Ipython is organized in cells
  • Types: Code, Markdown, Raw, Heading (deprecated)
  • Keyboard shortcuts ~ vi: EDIT mode and COMMAND mode

Notebook files

Notebook files:

  • Are just that - files (.ipynb) on your file system
  • Contain JSON data
In [1]:
import IPython.nbformat as ipnbf
with open('enviroment.ipynb') as f:
    nb = ipnbf.read(f, as_version=4)
In [2]:
nb.cells[0:3]
Out[2]:
[{'cell_type': 'markdown', 'metadata': {}, 'source': '# Jupyter Enviroment'},
 {'cell_type': 'markdown', 'metadata': {}, 'source': '# Basics'},
 {'cell_type': 'markdown',
  'metadata': {},
  'source': '* Ipython vs Python\n* How to start a notebook: _ipython notebook_\n* Main page:  \n    * Files  \n    * Running  \n    * Clusters  \n* Functions of the index page: create, run, shutdown and delete a notebook\n* Automatic saves and checkpoints (Version Control)\n* Ipython is organized in cells\n* Types: Code, Markdown, Raw, Heading (deprecated)\n* Keyboard shortcuts ~ vi: **EDIT mode** <Esc> and **COMMAND mode** <enter>'}]