Difference between revisions of "Jupyter"

From wiki
Jump to: navigation, search
(Created page with "The [https://jupyter.org/ jupyter] notebook is a great tool for experimenting with python code and document it in one go. A notebook consists of cells that have Code or Markd...")
 
(Other tricks)
 
Line 15: Line 15:
  
 
=Other tricks=
 
=Other tricks=
In a code cell enter
+
To execute shell command start the cell with a !
 +
 
 +
E.g. to install a new module:
 
  !pip install <modulename>
 
  !pip install <modulename>
To install a python module in the jupiter environment.
 

Latest revision as of 22:08, 7 October 2019

The jupyter notebook is a great tool for experimenting with python code and document it in one go.

A notebook consists of cells that have Code or Markdown text in it.

Keyboard shortcuts

  • dd delete cell
  • a paste a new empty cell above the current cell
  • b paste a new empty cell below the current cell
  • y change cell type to code
  • m change cell type to Markdown
  • c copy cell
  • v paste copied cell below current cell
  • h show help

Other tricks

To execute shell command start the cell with a !

E.g. to install a new module:

!pip install <modulename>