Difference between revisions of "Jupyter"

From ArchWiki
Jump to navigation Jump to search
m (fix link)
m (→‎Kernels: typo)
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
[[Wikipedia:Project Jupyter|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.
 
[[Wikipedia:Project Jupyter|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. [https://blog.jupyter.org/jupyterlab-is-ready-for-users-5a6f039b8906 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 [https://jupyterlab.readthedocs.io/en/stable/getting_started/changelog.html#v0-33-0 version 0.33].
+
JupyterLab is "Jupyter’s Next-Generation Notebook Interface", while Jupyter Notebook is the original. See the [https://jupyter.org/ Jupyter website] for a comparison.
  
 
== Installation ==
 
== Installation ==
  
For Jupyter Notebook, [[install]] the {{Pkg|jupyter-notebook}} package.
+
* For JupyterLab, [[install]] the {{Pkg|jupyterlab}} package.
 +
* For Jupyter Notebook, [[install]] the {{Pkg|jupyter-notebook}} package.
  
For JupyterLab, [[install]] the {{Pkg|jupyterlab}} package.
+
After installation, run the following to enable interactive JavaScript widgets in the notebooks; otherwise, widgets will be disabled.
 
 
After installation, run the following 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 23: Line 22:
  
 
== Running ==
 
== Running ==
 
To start the notebook server run:
 
$ jupyter notebook
 
  
 
To start JupyterLab run:
 
To start JupyterLab run:
 
  $ jupyter lab
 
  $ jupyter lab
 +
 +
To start Jupyter Notebook run:
 +
$ jupyter notebook
  
 
Navigate to the URL given on the standard output if a web browser does not automatically open.
 
Navigate to the URL given on the standard output if a web browser does not automatically open.
Line 62: Line 61:
  
 
Install the {{AUR|jupyter-octave_kernel}} package.
 
Install the {{AUR|jupyter-octave_kernel}} package.
 +
 +
=== Maxima ===
 +
 +
Install the {{AUR|maxima-jupyter-git}} package.
  
 
== See also ==
 
== See also ==
  
* [http://jupyter.org/ Official website]
+
* [https://jupyter.org/ Official website]

Latest revision as of 09:19, 4 September 2019

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.

JupyterLab is "Jupyter’s Next-Generation Notebook Interface", while Jupyter Notebook is the original. See the Jupyter website for a comparison.

Installation

After installation, run the following to enable interactive JavaScript widgets in the notebooks; otherwise, widgets will be disabled.

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

To install third-party Jupyter Notebook extensions for the current user, use the --user option instead of --sys-prefix while executing jupyter nbextension install. To do the same for installation of JupyterLab extensions, set the environment variable

$ export JUPYTERLAB_DIR=$HOME/.local/share/jupyter/lab

and verify it by running jupyter lab paths. Then onwards follow usual installation instructions.

Running

To start JupyterLab run:

$ jupyter lab

To start Jupyter Notebook run:

$ jupyter notebook

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:

using Pkg
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.

Maxima

Install the maxima-jupyter-gitAUR package.

See also