Difference between revisions of "Jupyter"

From ArchWiki
Jump to navigation Jump to search
(JupyterLab is no longer "beta")
(clarify, reword)
Line 11: Line 11:
 
For JupyterLab, [[install]] the {{AUR|jupyterlab}} package.
 
For JupyterLab, [[install]] the {{AUR|jupyterlab}} package.
  
After installation, run the following (as root) to enable interactive Javascript widgets in the notebooks (otherwise, widgets will be disabled):
+
After installation, run the following (as root) to enable interactive Javascript widgets in the notebooks; otherwise, widgets will be disabled.
  
 
  # jupyter nbextension enable --py --sys-prefix widgetsnbextension
 
  # jupyter nbextension enable --py --sys-prefix widgetsnbextension
Line 17: Line 17:
 
== Running ==
 
== Running ==
  
To start the notebook server, e.g. from a directory containing some ''.ipynb'' notebook files to be served, run:
+
To start the notebook server run:
 
  $ jupyter notebook
 
  $ jupyter notebook
  
To start JupyterLab, run:
+
To start JupyterLab run:
 
  $ jupyter lab
 
  $ jupyter lab
  
Then open a browser and navigate to http://localhost:8888.
+
Navigate to the URL given on the standard output if a web browser does not automatically open.
  
 
== Kernels ==
 
== Kernels ==

Revision as of 18:00, 31 July 2018

Jupyter is a project which produces browser-based interactive environments for programming, mathematics, and data science. It supports a number of languages via plugins ("kernels"), such as Python, Ruby, Haskell, R, Scala and Julia.

Jupyter Notebook is the traditional and most stable application. JupyterLab has a new interface and is more suitable for working with larger projects consisting of multiple files. JupyterLab is considered "ready for daily use" since version 0.33.

Installation

For Jupyter Notebook, install the jupyter-notebook package.

For JupyterLab, install the jupyterlabAUR package.

After installation, run the following (as root) to enable interactive Javascript widgets in the notebooks; otherwise, widgets will be disabled.

# jupyter nbextension enable --py --sys-prefix widgetsnbextension

Running

To start the notebook server run:

$ jupyter notebook

To start JupyterLab run:

$ jupyter lab

Navigate to the URL given on the standard output if a web browser does not automatically open.

Kernels

Haskell

Install the ihaskell-gitAUR package. Then run ihaskell install.

Julia

Install the julia package and run julia to get a REPL prompt. Then run:

Pkg.add("IJulia")

See the Julia manual for more details on package management.

Python

Install the python2-ipykernel package for Python 2 support. Python 3 support (via python-ipykernel) is included when installing jupyter-notebook.

R

Follow the installation instructions in IR Kernel.

Sage math

Install the sagemath-jupyter package.

Octave

Install the jupyter-octave_kernelAUR package.