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
75
votes
11 answers

How to get ipywidgets working in Jupyter Lab?

In Jupyter Notebook, ipywidgets work fine, however they seem to not work in Jupyter Lab (which is supposedly better than Notebook). I followed these directions. Step 1: Installed Node.js (https://nodejs.org/en/) Step 2: Installed requirements on…
user5601
  • 858
  • 1
  • 7
  • 9
75
votes
5 answers

Running Jupyter with multiple Python and IPython paths

I'd like to work with Jupyter notebooks, but have had difficulty doing basic imports (such as import matplotlib). I think this was because I have several user-managed python installations. For instance: > which -a…
npross
  • 1,756
  • 6
  • 19
  • 38
75
votes
13 answers

Jupyter Notebook: command for hide the output of a cell?

In my notebook, I have a cell returning temp calculation results. It's a bit long, so after it is run, I want to hide it and when needed, to show it. To do it manually, I can double click the left side of the output, to hide it After double…
ZK Zhao
  • 19,885
  • 47
  • 132
  • 206
74
votes
6 answers

How to update jupyterlab using conda or pip

How do you update jupyterlab using conda or pip? I understand that conda update jupyter updates jupyter notebook (I have Anaconda), but I'm not sure this takes care of jupyterlab as well.
a06e
  • 18,594
  • 33
  • 93
  • 169
74
votes
5 answers

How do I run Python asyncio code in a Jupyter notebook?

I have some asyncio code which runs fine in the Python interpreter (CPython 3.6.2). I would now like to run this inside a Jupyter notebook with an IPython kernel. I can run it with import asyncio asyncio.get_event_loop().run_forever() and while…
snth
  • 5,194
  • 4
  • 39
  • 48
73
votes
7 answers

Link Conda environment with Jupyter Notebook

I'm trying to set a good environnement for doing some scientific stuff with python. To do so, I installed Jupyter & miniconda. Then I want to be able to have different environnement and use them with Jupyter notebooks. So I created two custom envs…
tdehaeze
  • 893
  • 1
  • 7
  • 9
72
votes
18 answers

Jupyter notebooks in Visual Studio Code does not use the active virtual environment

I write Python code in Visual Studio Code and run the program from a terminal in which I have activated a virtual environment, and it works fine. However, if I create notebook cells using #%% and run those interactively, the virtual environment is…
Henrik Leijon
  • 1,277
  • 2
  • 10
  • 15
72
votes
6 answers

Jupyter Notebook authentication token while in Pycharm

I am trying to use the Jupyter notebook in Pycharm, but I realized that in the new Jupyter update, there was the addition of tokens. I am following the tutorial below from JetBrains. With all the settings initiated with the virtual environment…
PutsandCalls
  • 997
  • 1
  • 8
  • 11
72
votes
6 answers

How to change the default browser used by the ipython/jupyter notebook in Linux?

I'm on Linux Mint 17.3. How do I change the default browser used by the Jupyter notebook? I have installed the notebook as a part of Anaconda 3 and it opens up in my default browser—Chrome. But for some reason, Chrome won't let me make a new ipynb.…
Kevin
  • 841
  • 1
  • 7
  • 7
71
votes
1 answer

AttributeError: type object 'Callable' has no attribute '_abc_registry'

When I open my jupyter notebook I get errors. I use google for help, but I can't find an answer. I'm on macOS mojave and using python 3.7.2.I reinstalled my Jupiter notebook but no change. When I input jupyter notebook. It show me these Last login:…
朱嘉宇
  • 711
  • 1
  • 5
  • 5
71
votes
19 answers

TAB completion does not work in Jupyter Notebook but fine in iPython terminal

TAB completion works fine in iPython terminal, but not in Firefox browser. So far I had tried but failed, 1). run a command $ sudo easy_install readline, then the .egg file was wrote in…
70
votes
8 answers

Keep Jupyter notebook running after closing browser tab

I use Jupyter Notebook to run a series of experiments that take some time. Certain cells take way too much time to execute so it's normal that I'd like to close the browser tab and come back later. But when I do the kernel interrupts running. I…
Flo
  • 1,367
  • 1
  • 13
  • 27
68
votes
8 answers

Simple way to visualize a TensorFlow graph in Jupyter?

The official way to visualize a TensorFlow graph is with TensorBoard, but sometimes I just want a quick look at the graph when I'm working in Jupyter. Is there a quick solution, ideally based on TensorFlow tools, or standard SciPy packages (like…
MiniQuark
  • 46,633
  • 36
  • 147
  • 183
66
votes
6 answers

Django: SynchronousOnlyOperation: You cannot call this from an async context - use a thread or sync_to_async

I use Django 3.0.6 and Jupyter notebook running with shell_plus --notebook. I try run queryset: User.objects.all() But return this error SynchronousOnlyOperation: You cannot call this from an async context - use a thread or sync_to_async. I try this…
Regis Santos
  • 3,469
  • 8
  • 43
  • 65
64
votes
11 answers

Line numbers for every cell in VSCode Jupyter Notebook Cells

In the normal Jupyter notebooks, we can add line numbers by pressing the L key after selecting the cell. All the subsequent cells for that notebook will have line numbers automatically. But this is missing in VSCode. Every time a new cell is…