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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 8.0.0 seems not working with Jupyter Lab 2.0 #2840

Closed
dou-du opened this issue Apr 4, 2020 · 12 comments
Closed

version 8.0.0 seems not working with Jupyter Lab 2.0 #2840

dou-du opened this issue Apr 4, 2020 · 12 comments
Assignees
Milestone

Comments

@dou-du
Copy link

dou-du commented Apr 4, 2020

I am testing the pre-release version 8.0.0.alpha0 for ipywidgets. It seems not working with
JupyterLab 2.0.

@stonebig
Copy link
Contributor

stonebig commented Apr 6, 2020

ipywidgets-7.5.1 seems not reactive either on this example and Jupyterlab-2.1.0rc0

# Networks graph Example : https://github.com/ipython/ipywidgets/blob/master/examples/Exploring%20Graphs.ipynb
%matplotlib inline
from ipywidgets import interact
import matplotlib.pyplot as plt
import networkx as nx
# wrap a few graph generation functions so they have the same signature

def random_lobster(n, m, k, p):
   return nx.random_lobster(n, p, p / m)

def powerlaw_cluster(n, m, k, p):
   return nx.powerlaw_cluster_graph(n, m, p)

def erdos_renyi(n, m, k, p):
   return nx.erdos_renyi_graph(n, p)

def newman_watts_strogatz(n, m, k, p):
   return nx.newman_watts_strogatz_graph(n, k, p)

@interact(n=(2,30), m=(1,10), k=(1,10), p=(0.0, 1.0, 0.001),
       generator={'lobster': random_lobster,
                  'power law': powerlaw_cluster,
                  'Newman-Watts-Strogatz': newman_watts_strogatz,
                  u'Erdős-Rényi': erdos_renyi,
                  })
def plot_random_graph(n, m, k, p, generator):
   g = generator(n, m, k, p)
   nx.draw(g)
   plt.title(generator.__name__)
   plt.show()
   

GIF_jupyterlab_2_1_0rc0

@stonebig
Copy link
Contributor

stonebig commented Apr 7, 2020

with jupyterlab-2.1.0 final, I just have to relaunch the cell and it works.... I have also to do the same relaunch for %matplotlib widget cells, so maybe more a Jupyterlab thing than ipywidgets.

@tcwalther
Copy link

I have the same problem. Running the following code freezes the kernel. Pressing "restart kernel" doesn't help; however, shutting down the kernel and then restarting the kernel does 🤷‍♂️.

import ipywidgets
audio_player = ipywidgets.Audio(loop=False)

Env:

jupyter@***:~$ pip freeze | grep widgets
ipywidgets==7.5.1
widgetsnbextension==3.5.1
jupyter@***:~$ pip freeze | grep jupyter
jupyter==1.0.0
jupyter-aihub-deploy-extension==0.1
jupyter-client==5.3.4
jupyter-console==6.0.0
jupyter-contrib-core==0.3.3
jupyter-contrib-nbextensions==0.5.1
jupyter-core==4.6.1
jupyter-highlight-selected-word==0.2.0
jupyter-http-over-ws==0.0.6
jupyter-latex-envs==1.4.6
jupyter-nbextensions-configurator==0.4.1
jupyter-server-proxy==1.3.2
jupyter-tensorboard==0.1.10
jupyterlab==2.1.0
jupyterlab-git==0.6.1
jupyterlab-nvdashboard==0.2.1
jupyterlab-server==1.1.0
jupyter@tw-beatbox:~$ 

@jasongrout
Copy link
Member

jasongrout commented Apr 15, 2020

I am testing the pre-release version 8.0.0.alpha0 for ipywidgets. It seems not working with
JupyterLab 2.0.

Correct: we have not released an 8.0 alpha that supports JLab 2.0.

@jasongrout jasongrout added this to the 8.0 milestone Apr 15, 2020
@thomasaarholt
Copy link

@jasongrout what is the current status on versions of ipywidgets and widgetsnbextension? "Is" there a v8 / v4 of these?

I was looking at the widgetsnbextension because I noticed that conda install widgetsnbextension depends on notebook, but it looks like this is no longer the case? Ref: matplotlib/ipympl#34

@jasongrout
Copy link
Member

@jasongrout what is the current status on versions of ipywidgets and widgetsnbextension? "Is" there a v8 / v4 of these?

Current ipywidgets is 7.6.3. I did not publish a new version of widgetsnbextension (not necessary) when I did ipywidgets 7.6, so it is still at 3.5.1.

widgetsnbextension does indeed depend on notebook, like it always has. I think the plan is to break that dependency link in the next major version (ipywidgets 8, widgetsnbextension 4).

@jasongrout
Copy link
Member

If it's causing a huge issue, we could consider releasing widgetsnbextension 4 with basically the major change being breaking the dependency link to notebook.

We're having a planning meeting for ipywidgets 8 sometime soon (by early February) where we can evaluate whether it is better to move forward with updating widgetsnbextension like this before ipywidgets 8, or whether we should push forward to ipywidgets 8. Feel free to come to the planning meeting if you'd like.

@thomasaarholt
Copy link

It's not a major pain point at all - it's just nice to be able to slim down environments when possible.
I'd be happy to come to the meeting! I might not say much, but I might have some thoughts. Is there a mailing-list or similar?

@jasongrout
Copy link
Member

For the meeting details and planning, see the gitter.

@jasongrout
Copy link
Member

jasongrout commented Jan 28, 2021

More about the 8.0 planning meeting is at #2750 (comment)

@willingc
Copy link
Contributor

willingc commented Feb 2, 2021

widgetsnbextension does indeed depend on notebook, like it always has. I think the plan is to break that dependency link in the next major version (ipywidgets 8, widgetsnbextension 4).

fyi @captainsafia @MSeal

@jasongrout
Copy link
Member

ipywidgets 8.0 currently is targeting JupyterLab 3 and classic Jupyter Notebook

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

6 participants