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
50
votes
7 answers

Spark 1.4 increase maxResultSize memory

I am using Spark 1.4 for my research and struggling with the memory settings. My machine has 16GB of memory so no problem there since the size of my file is only 300MB. Although, when I try to convert Spark RDD to panda dataframe using toPandas()…
ahajib
  • 12,838
  • 29
  • 79
  • 120
49
votes
4 answers

How to use django 3.0 ORM in a Jupyter Notebook without triggering the async context check?

Django 3.0 is adding asgi / async support and with it a guard around making synchronous requests in an async context. Concurrently, IPython just added top level async/await support, which seems to be running the whole interpreter session inside of a…
michalwols
  • 648
  • 1
  • 5
  • 8
49
votes
14 answers

Solving "500: Internal Server Error, nbconvert failed: xelatex not found in PATH"

Whenever I try to export a Jupyter notebook as a PDF I get the following error in a separate window: 500 : Internal Server Error The error was: nbconvert failed: xelatex not found on PATH, if you have not installed xelatex you may need to do so.…
Parseltongue
  • 11,157
  • 30
  • 95
  • 160
48
votes
4 answers

How to disable auto-quotes and auto-brackets in Jupyter 5.0

I upgraded Jupyter to the latest vesion, 5.0, and it looks like my front-end configuration stopped working. I don't understand why Jupyter comes with auto closing quotes and brackets by default, which I find pretty annoying. So, at each version I…
Marc Garcia
  • 3,287
  • 2
  • 28
  • 37
48
votes
8 answers

Executing terminal commands in Jupyter notebook

I am trying to run the following in Jupyter notebook (with Python 2 if it makes a difference): !head xyz.txt and I get the following error: 'head' is not recognized as an internal or external command, operable program or batch file. Is there…
luckyfool
  • 1,653
  • 3
  • 14
  • 12
47
votes
5 answers

Restart ipython Kernel with a command from a cell

Is it possible to restart an ipython Kernel NOT by selecting Kernel > Restart from the notebook GUI, but from executing a command in a notebook cell?
pebox11
  • 3,377
  • 5
  • 32
  • 57
47
votes
10 answers

Insert/overwrite shortcut key in Jupyter

What is the Jupyter shortcut key to toggle between insert and overwrite mode whilst editing? I must keep hitting it by accident and then cannot turn off overwrite mode. I have looked at the list of shortcuts in Jupyter and online, but I could not…
eknumbat
  • 928
  • 1
  • 8
  • 12
46
votes
6 answers

How to clear GPU memory after PyTorch model training without restarting kernel

I am training PyTorch deep learning models on a Jupyter-Lab notebook, using CUDA on a Tesla K80 GPU to train. While doing training iterations, the 12 GB of GPU memory are used. I finish training by saving the model checkpoint, but want to continue…
Glyph
  • 683
  • 1
  • 7
  • 8
46
votes
6 answers

Running interactive command line code from Jupyter notebook

There is an interesting option in Ipython Jupyter Notebook to execute command line statements directly from the notebook. For example: ! mkdir ... ! python file.py Moreover - this code can be run using os: import os os.system('cmd command') but…
Dimgold
  • 2,748
  • 5
  • 26
  • 49
46
votes
5 answers

Stop Jupyter Notebook from printing warnings / status updates to the terminal

I love Jupyter Notebook. However, it prints many, many updates to the terminal it was started from. For example, every time a file is saved manually or automatically, a line is printed. It makes the terminal virtually useless. How do I stop it?
saud
  • 773
  • 1
  • 7
  • 20
45
votes
11 answers

Jupyter notebook command does not work on Mac

I installed jupyter using pip on my macbook air. Upon trying to execute the command jupyter notebook, I get an error jupyter: 'notebook' is not a Jupyter command I used the --h option to get a listing of all jupyter commands and indeed, 'notebook'…
pokiman
  • 956
  • 2
  • 12
  • 20
45
votes
6 answers

How to include two pictures side by side in Markdown for IPython Notebook (Jupyter)?

I am trying to insert two pictures side by side in one Markdown cell on a notebook. The way I do it was: Drawing in order to be able to size the included picture. Can anyone gives…
user5224720
44
votes
5 answers

Is it possible to display an OpenCV video inside the IPython /JuPyter Notebook?

When running the examples from the OpenCV video processing python tutorials, they all pop up in a dedicated window. I know that the IPython notebook can display videos from disk and YouTube, so I wonder if there is a way to direct the OpenCV video…
joelostblom
  • 43,590
  • 17
  • 150
  • 159
43
votes
2 answers

How to run a single line or selected code in a Jupyter Notebook or JupyterLab cell?

In both JupyterLab and Jupyter Notebook you can execute a cell using ctrl + Enter: Code: print('line 1') print('line 2') print('line 3') Cell and output: But how can you run only line 2? Or even a selection of lines within a cell without running…
vestland
  • 55,229
  • 37
  • 187
  • 305
43
votes
1 answer

what is the relation and difference between ipython and jupyter console

After the ipython notebook project renamed to jupyter, I always think that ipython notebook is the same as jupyter notebook and ipython shell is just an alias of jupyter console. Today I realize that ipython does not have connect_info magic defined…
doraemon
  • 2,296
  • 1
  • 17
  • 36