Jupyter is a non-profit, open-source project, born out of the IPython project. It exists to develop open-source software, open-standards, and services for interactive computing across dozens of programming languages. The Jupyter notebook framework allows for keeping code, images, comments, formulas and plots together. Here are some further links:
jupyter notebook. This opens the default web browser at the URL http://localhost:8888jupyter notebook --NotebookApp.disable_check_xsrf=TrueText can be added to Jupyter notebooks using markdown cells. In these cells, one can use traditional HTML, certain LaTeX commands, and also the popular text-to-HTML conversion language Markdown. Here are some examples as used in the FMP notebooks:
#, ##, ###, ...).*, +, and -) as list markers. > at the beginning of the line.This is a blockquote. A linebreak is encoded by two blanks at the end of a line.
This is the next line.This is the next paragraph.
Instead of>, one can also use<blockquote>and</blockquote>
<code> element, one can use the grave accent (`) to indicate a code fragmentKeyboard shortcuts save lots of time. To access these shortcuts, note that Jupyter notebook operates in two modes:
To enter the command mode, one can either press Esc or use the mouse to click outside a cell's editor area. Being in command mode, one can use the following keyboard shortcuts:
Esc: switch to command modeH: access help menue with keyboard shortcutsP: open the command paletteCtrl + Enter: run selected cellsShift + Enter: run cell, select belowA: insert a new cell above current cellB: insert a new cell below current cellCtrl + Shift + -: split cell at current cursor positionY: change cell to codeM: change cell to markdownD + D (press the key twice): delete current cellZ: undo cell deletionShift + J or Shift + Down: select cells downwardsShift + K or Shift + Up: select cells upwardsShift + M: merge selected cellsX: cut selected cellsC: copy selected cellsV: paste cells belowEsc to go to command modeShift + Up or Shift + Down to select multiple cellsCtrl + CCtrl + V (also possible in different notebook, make sure to be in command mode)Ctrl + VAlt button and keep holding it. The cursor should change its shape into a big plus sign.Alt button and pull down the mouse until the last line.Alt button and edit in the column mode. # character to comment multiple lines.There is an easy way within a Jupyter notebook session to call help for a Python function in order to see the function arguments. Being in a code cell, just place the cursor on the Python function in question and press shift-Tab. If you press shift-Tab several times, the entire documentation string is opened. For example, in the case of the built-in function max, this is equivalent to help(max) or print(max.__doc__).
print(max(2, 3, 4, 5))
# Placing cursor on function name 'max' and press shift-Tab.
# Then you obtain the information as with help(max).
help(max)