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
3
votes
1 answer

AttributeError: type object 'sklearn.tree._tree.TreeBuilder' has no attribute '__reduce_cython__'

I am using jupyter installed via Anaconda3. i cannot import DecisionTreeClassifier and getting the below error. Python version installed in Ananconda - 3.7.3. Can someone help me here? import pandas as pd from sklearn import tree music =…
Sadhun
  • 264
  • 5
  • 14
3
votes
1 answer

Plot shows wrong points in Jupyter

I'm doing a Python test to draw some functions. The problem is that the points that both functions intersect at the same X are not correct. import numpy as np import matplotlib.pyplot as plt %matplotlib inline x = np.arange(-10,10,1) def f(x):…
3
votes
2 answers

Jupyter notebook: Is there a way to fold sections while exporting to html

I am using Jupyter notebooks with jupyter-contrib-nbextensions and I can fold sections as well as code blocks in them. I want to know if there is a way to preserve the folding feature when the notebook is exported to html. Currently when I export…
3
votes
1 answer

jupyter notebook blank screen in browser

When I run Jupyter notebook and go to the browser at the specified address, a blank page is loaded.enter image description here logs that fly out in cmd: [I 19:11:21.500 NotebookApp] JupyterLab extension loaded from c:\program files (x86)\microsoft…
3
votes
1 answer

convert ipynb notebook to org and execute in emacs

I've seen some applauses for org-babel in place of jupyter (https://news.ycombinator.com/item?id=16842786) and trying out what it is about. I'd like to convert *.ipynb file to *.org file and the execute each source block in org mode as we would do…
eugene
  • 39,839
  • 68
  • 255
  • 489
3
votes
0 answers

MIME type checking is enabled

After running jupyter notebook on my cmd, it opens up a blank page. I am getting these errors in my chrome console.
Seol
  • 49
  • 2
3
votes
2 answers

Jupyter Class in different notebook?

i am currently forced in an project to work with jupyter notebook, before I just used PyCharm. So I create a project and would like to add some classes to it. Should I write all of them in the one main notebook or create different notebooks for…
asc
  • 79
  • 8
3
votes
0 answers

How to zoom charts in jupyterlab

I am plotting some charts with a fixed size. I need to keep this size because they are later saved and embedded in a Latex document. While working in jupyter they look too small. I know I can change the size with matplotlib but this is not my…
Juan Leni
  • 6,982
  • 5
  • 55
  • 87
3
votes
1 answer

Using Visual Studio Code Python extension with Jupyter interactive window on a Retina display

Is there a way to instruct the Jupiter interactive window to use a Retina display with the Python extension of Visual Studio Code? For example, this minimal code #%% import numpy as np from matplotlib import pyplot as plt x = np.linspace(-10, 10,…
Marco Lombardi
  • 545
  • 4
  • 18
3
votes
0 answers

torch NameError: name '_C' is not defined

I'm getting the following error when trying to import torch in Jupyter: --------------------------------------------------------------------------- NameError Traceback (most recent call last)
Zahra
  • 6,798
  • 9
  • 51
  • 76
3
votes
2 answers

How to solve an OverflowError when exporting pandas dataframe to JSON

In Jupyter, I have a dataframe of 400 000 objects that I can't entirely export to a JSON file without facing the following error. The export is working great as long as I limit the exportation to the first 141 000 objects , whatever the order of…
tim
  • 107
  • 1
  • 7
3
votes
0 answers

Displaying pandas dataframe after doing nbconvert for jupyter notebook

When I run my notebook in Jupyter Notebook, I have a nice dataframe outputted. However, when I run my notebook from command line and convert it to a pdf using --to pdf the dataframe does not display. Is there anything I can do to display the…
Jane Sully
  • 3,137
  • 10
  • 48
  • 87
3
votes
1 answer

Jupyter: How can you pretty-print many data frames from the code in one cell?

When you run a function that returns a Pandas data frame in a Jupyter cell, it prints out this very aesthetic table. When you give an explicit command to print, it looks much worse. I have a list of data frames and I'd like to print each. Is…
Addem
  • 3,635
  • 3
  • 35
  • 58
3
votes
1 answer

Audit Commands run in Jupyter Notebook

Requirement: Be able to audit (using logs) all the commands run in Jupyter Notebook by a user. The Jupyter Notebook is installed on Dataproc. Is there a way we can log the command run by the user at the same time. I have already tried changing…
kaxil
  • 17,706
  • 2
  • 59
  • 78
3
votes
1 answer

How to write piecewise function in jupyter notebook markdown?

I'm trying to write a piecewise function in markdown on jupyter and jupyter is being spooky. Out of three functions, it only displays one properly (the $n_o$ one), even though they are all written in the same manner. Is there a more elegant way to…
fazan
  • 155
  • 1
  • 3
  • 12