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
233
votes
13 answers

collapse cell in jupyter notebook

I am using ipython Jupyter notebook. Let's say I defined a function that occupies a lot of space on my screen. Is there a way to collapse the cell? I want the function to remain executed and callable, yet I want to hide / collapse the cell in order…
aloha
  • 4,554
  • 6
  • 32
  • 40
210
votes
23 answers

"ImportError: No module named" when trying to run Python script

I'm trying to run a script that launches, amongst other things, a python script. I get a ImportError: No module named ..., however, if I launch ipython and import the same module in the same way through the interpreter, the module is…
CodeOcelot
  • 3,403
  • 3
  • 22
  • 23
199
votes
11 answers

How can I add a table of contents to a Jupyter / JupyterLab notebook?

The documentation at http://ipython.org/ipython-doc/stable/interactive/notebook.html says You can provide a conceptual structure for your computational document as a whole using different levels of headings; there are 6 levels available, from level…
user2428107
  • 3,003
  • 3
  • 17
  • 19
198
votes
10 answers

Get Output From the logging Module in IPython Notebook

When I running the following inside IPython Notebook I don't see any output: import logging logging.basicConfig(level=logging.DEBUG) logging.debug("test") Anyone know how to make it so I can see the "test" message inside the notebook?
Kyle Brandt
  • 26,938
  • 37
  • 124
  • 165
197
votes
12 answers

Showing line numbers in IPython/Jupyter Notebooks

Error reports from most language kernels running in IPython/Jupyter Notebooks indicate the line on which the error occurred; but (at least by default) no line numbers are indicated in notebooks. Is it possible to add the line numbers to…
Ruggero Turra
  • 16,929
  • 16
  • 85
  • 141
195
votes
4 answers

How do you suppress output in Jupyter running IPython?

How can output to stdout be suppressed? A semi-colon can be used to supress display of returned objects, for example >>> 1+1 2 >>> 1+1; # No output! However, a function that prints to stdout is not affected by the semi-colon. >>>…
Zero
  • 11,593
  • 9
  • 52
  • 70
189
votes
33 answers

Running Jupyter via command line on Windows

I have installed Jupyter on Windows 10, Python 3.x via $ pip install jupyter The installation works fine, even though I did restart the terminal. But trying to run $ jupyter notebook gives the following error 'jupyter' is not recognized as an…
eleijonmarck
  • 4,732
  • 4
  • 22
  • 24
185
votes
4 answers

How can I see function arguments in IPython Notebook Server 3?

I've recently switched to IPython Notebook 3 (3.1.0-cbccb68 to be exact), the Anaconda version. Previously when I typed a function and opened a parenthesis like this: time.sleep() and if the cursor was between the parentheses then I would get a…
user11094
  • 2,011
  • 2
  • 14
  • 7
184
votes
13 answers

IOPub data rate exceeded in Jupyter notebook (when viewing image)

I want to view an image in Jupyter notebook. It's a 9.9MB .png file. from IPython.display import Image Image(filename='path_to_image/image.png') I get the below error: IOPub data rate exceeded. The notebook server will temporarily stop sending…
lmart999
  • 6,671
  • 10
  • 29
  • 37
181
votes
6 answers

How can I share Jupyter notebooks with non-programmers?

I am trying to wrap my head around what I can/cannot do with Jupyter. I have a Jupyter server running on our internal server, accessible via VPN and password protected. I am the only one actually creating notebooks but I would like to make some…
xav
  • 4,101
  • 5
  • 26
  • 32
168
votes
7 answers

Can I run Keras model on gpu?

I'm running a Keras model, with a submission deadline of 36 hours, if I train my model on the cpu it will take approx 50 hours, is there a way to run Keras on gpu? I'm using Tensorflow backend and running it on my Jupyter notebook, without anaconda…
Ryan
  • 8,459
  • 14
  • 40
  • 66
164
votes
4 answers

How to display full output in Jupyter, not only last result?

I want Jupyter to print all the interactive output without resorting to print, not only the last result. How to do it? Example : a=3 a a+1 I would like to display 3 4
mbh86
  • 6,078
  • 3
  • 18
  • 31
163
votes
8 answers

How to programmatically generate markdown output in Jupyter notebooks?

I want to write a report for classes in Jupyter notebook. I'd like to count some stuff, generate some results and include them in markdown. Can I set the output of the cell to be interpreted as markdown? I'd like such command: print '$\phi$' to…
fulaphex
  • 2,879
  • 3
  • 19
  • 26
159
votes
6 answers

How to recover deleted Jupyter notebook cell?

I use Jupyter notebook. I accidentally deleted a cell, and I can't go step back. How can I recover the notebook cell?
HISI
  • 4,557
  • 4
  • 35
  • 51
152
votes
11 answers

How to list package versions available with conda

Is there a way to see what package versions are available with conda? I am getting an error with jupyter but it was working before. Something like yolk?
pkumar0
  • 2,069
  • 3
  • 14
  • 21