Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

JupiterLab matplotlib issue #14428

Open
sofiakalinina33 opened this issue May 2, 2024 · 3 comments
Open

JupiterLab matplotlib issue #14428

sofiakalinina33 opened this issue May 2, 2024 · 3 comments

Comments

@sofiakalinina33
Copy link

Hello 馃憢

I have a problem when using JupiterLab. I am running the following code:

import numpy as np 
import matplotlib.pyplot as plt 
x = np.linspace(-10, 10, 200) 
y = np.sin(np.pi * x)/(np.pi * x) 
plt.plot(x, y) 
plt.show() 

There is no visible output and the kernel restarts itself.

I would be very gratefull for your help 馃拰

@ianthomas23
Copy link
Collaborator

Please you can supply more information about what Operating System you are using, how you installed the packages and what versions they are.

For example, the outputs of

jupyter --version

and

python -c "import matplotlib as mpl; print(mpl.__version__)" 

would be useful.

@sofiakalinina33
Copy link
Author

Sure 馃槂

  1. I am using Debian GNU/Linux 11 (bullseye) OS.
  2. My Jupiter version is 5.5.0
  3. And matplotlib version is 3.8.2

@ianthomas23
Copy link
Collaborator

OK, so you are using the Debian system packages, installed using apt install or Synaptic or similar? Usually we would recommend installing in a virtual environment using conda, virtualenv, or pyenv, etc as that gives you greater control over the versions of packages installed.

Please can you still run

jupyter --version

and paste what that gives you, as this will show the version of Python packages installed rather than the Debian package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants