Questions tagged [jupyter]

Jupyter is a collection of environments and protocols for interactive computing. It supports many languages and kernels, and works with frontends including the web application Jupyter Notebook. Jupyter was split from IPython in 2015, and Jupyter Notebook is based on IPython Notebook.

Jupyter is the home of language-agnostic projects that began as part of IPython, such as the IPython Notebook.

Jupyter was split from IPython starting with IPython 4.0 (released August 11, 2015). The parts of IPython which work for any language are now called Jupyter, while the parts specific to executing Python code remain as IPython.

Jupyter projects include:

  • JupyterLab is the next-generation web-based user interface for Project Jupyter
  • Jupyter Notebook (based on IPython notebook)
  • qtconsole
  • Jupyter protocol
  • JupyterHub (multi-user server)
  • See Jupyter Documentation for a comprehensive list of links to each of the repositories for the Jupyter project.

See also

7885 questions
150
votes
16 answers

How to close IPython Notebook properly?

How to close IPython Notebook properly? Currently, I just close the browser tabs and then use Ctrl+C in the terminal. Unfortunately, neither exit() nor ticking Kill kernel upon exit does help (they do kill the kernel they but don't exit the…
Piotr Migdal
  • 11,864
  • 9
  • 64
  • 86
145
votes
3 answers

How to pickle or store Jupyter (IPython) notebook session for later

Let's say I am doing a larger data analysis in Jupyter/Ipython notebook with lots of time consuming computations done. Then, for some reason, I have to shut down the jupyter local server I, but I would like to return to doing the analysis later,…
redacted
  • 3,789
  • 6
  • 25
  • 38
139
votes
7 answers

Resize the image in jupyter notebook using markdown

I want to add the image in the Jupyter notebook and I want to have particular height and width. When I try to add the image using ![](img.png) the code is adding the complete image but as per the image dimension and I don't have control over…
Anil Verma
  • 1,401
  • 2
  • 9
  • 8
132
votes
1 answer

What are Jupyter Notebook checkpoint files for?

Besides the original Jupyter Notebook file (.ipynb file), sometimes I get a checkpoint .ipynb file which seems to be directly linked to the original .ipynb file. What's the purpose of these checkpoint files? And what causes them to be generated…
Alex
  • 3,958
  • 4
  • 17
  • 24
132
votes
7 answers

__file__ does not exist in Jupyter Notebook

I'm on a Jupyter Notebook server (v4.2.2) with Python 3.4.2 and I want to use the global name __file__, because the notebook will be cloned from other users and in one section I have to run: def __init__(self, trainingSamplesFolder='samples',…
Fabian
  • 3,139
  • 2
  • 23
  • 49
124
votes
20 answers

IPython/Jupyter Problems saving notebook as PDF

So, I've been trying to save a jupyter notebook as PDF but I just can't figure out how to do this. The first thing I try is from the file menu just download as PDF, but doing that results in: nbconvert failed: PDF creating failed the next thing I…
Isak Baizley
  • 1,722
  • 4
  • 16
  • 21
119
votes
3 answers

How to use Jupyter notebooks in a conda environment?

Typically one runs jupyter notebook or jupyter-notebook or ipython notebook in a terminal to start a Jupyter notebook webserver locally (and open the URL in the browser). When using conda and conda environments, what is the best way to run a Jupyter…
lumbric
  • 7,644
  • 7
  • 42
  • 53
117
votes
3 answers

Tables in Markdown (in Jupyter)

A super basic question: why is the following not rendering in Markdown - which happens to be in a jupyter notebook Raw code ### Results | --- | --- | --- | | Stretch/Untouched | ProbDistribution | Accuracy | | --- | --- | --- | | Stretched |…
WestCoastProjects
  • 58,982
  • 91
  • 316
  • 560
117
votes
5 answers

What is the currently correct way to dynamically update plots in Jupyter/iPython?

In the answers to how to dynamically update a plot in a loop in ipython notebook (within one cell), an example is given of how to dynamically update a plot inside a Jupyter notebook within a Python loop. However, this works by destroying and…
N. Virgo
  • 7,970
  • 11
  • 44
  • 65
116
votes
15 answers

How do I get the current IPython / Jupyter Notebook name

I am trying to obtain the current NoteBook name when running the IPython notebook. I know I can see it at the top of the notebook. What I am after something like currentNotebook = IPython.foo.bar.notebookname() I need to get the name in a variable.
Tooblippe
  • 3,433
  • 3
  • 17
  • 25
110
votes
5 answers

List running Jupyter notebooks and tokens

How do you check the login tokens for all running jupyter notebook instances? Example: you have a notebook running in tmux or screen permanently, and login in remotely through ssh. Sometimes, particularly if you're logging in after a long time, the…
christopherlovell
  • 3,800
  • 4
  • 19
  • 26
109
votes
14 answers

How to disable password request for a Jupyter notebook session?

I have been launching Jupyter Notebook for years using the following command: jupyter-notebook --port=7000 --no-browser --no-mathjax When I try to open the jupyter on the browser it ask me for a password, even though I have never set any before. It…
Salvatore Cosentino
  • 6,663
  • 6
  • 17
  • 25
108
votes
12 answers

Installing a pip package from within a Jupyter Notebook not working

When I run !pip install geocoder in Jupyter Notebook I get the same output as running pip install geocoder in the terminal but the geocoder package is not available when I try to import it. I'm using Ubuntu 14.04, Anaconda 4.0.0 and pip…
Mikhail Janowski
  • 4,209
  • 7
  • 28
  • 40
105
votes
10 answers

Unit tests for functions in a Jupyter notebook?

I have a Jupyter notebook that I plan to run repeatedly. It has functions in it, the structure of the code is this: def construct_url(data): ... return url def scrape_url(url): ... # fetch url, extract data return parsed_data for i…
Richard
  • 62,943
  • 126
  • 334
  • 542
102
votes
5 answers

How to execute a * .PY file from a * .IPYNB file on the Jupyter notebook?

I am working on a Python Notebook and I would like that large input code [input] pack into a [* .PY] files and call this files from the notebook. The action of running a [.PY] file from the Notebook is known to me and the command varies between…
JMSH
  • 1,268
  • 2
  • 9
  • 10