-
Notifications
You must be signed in to change notification settings - Fork 56
Unable to communicate with the jupyterlab-dash JupyterLab extension. #24
Comments
the same question here. |
@sangeetsaurabh can you provide some more details about how you are running your jupyterlab (you say jupyter notebook in your post, but this is a jupyterlab extension) notebook (e.g locally with windows, deployed with jupyterhub, etc.)? |
I'm seeing this as well. In my case, my notebook server is launched from a hub and is running lab. I've confirmed that the dash extension is installed and enabled. I copy/pasted the "Usage" example from the README and the code ran without error, however nothing in the UI changed. The exception was displayed a few seconds after |
I have the same issue - I believe it is related to Jupyterhub specifically. When I run jupyterlab from jupyterhub I get the issue, but when I connect to it via port-forwarding on the same server it works fine. |
same here. |
I was able to get jupyterlab-dash working on one computer but then hit the same OSError exception listed above when running on a second computer. I also was getting the following in juptyerlab's output:
I'm sure this won't work for everyone, but in my case upgrading ipykernel (to 7.7.0 from 7.6.1) fixed things. Thanks! p.s. I was coming across this issue in a straightforward single user jupyterlab setup (i.e. not running jupyterhub) |
Chiming in on this -- I get the error each time I reconnect to the notebook instance. I have to shut down my server, re-activate the plugin, and then re-start the server. Then it works again |
@billgreenwald What do you mean by "re-activate the plugin". How do you do that? Does it mean |
Each time I wanted to use the extension, I would first re-run jupyter labextension install [email protected] And then it would work until I closed the notebook. However, I reinstalled conda for a different reason, and now it won't work at all. So I don't think my solution was actually anything. |
@billgreenwald Thanks for the prompt response! Actually, I could solve the problem and it is working well. I did the EDIT: The link to the |
I tried @raghavendrajain's suggestion and it worked, for anyone in the future trying things |
@sangeetsaurabh Can you please try the solution @billgreenwald and myself tried and if successful, please close the issue. Thank you! |
Tried doing a development build following instructions as @billgreenwald and @raghavendrajain suggested from within my Python 3.6.9 virtual environment. But still get the error. Here are my libs from a pip list:
|
Have you tried upgrading ipython & ipykernel (if not already up to date)? |
Here are my ipython versions, I believe they are the latest...
|
@jconlon Hi. Please tell me your OS? I will share my experience a bit more. When I open |
Here is my OS:
I too was trying the simple Usage example, but I always get that error. Now I am inside of a env, at is from that terminal that I start the |
@jconlon I believe you should not use command |
Right, I/O error on my part. Its working now. thanks! |
I was running Dash applications in JupyterLab yesterday, but when I restarted JupyterLab today, I ran into this issue. Reinstalling jupyterlab-dash didn't help. I tried development installation as well, since @raghavendrajain and @billgreenwald reported it as a working solution. However, the installation fails when building jupyterlab assets (webpack fails with |
Hi @mhavu It happens with me too sometime. I first restart the kernel and usually it works. I never had to go for re-installation. |
To add to the discussion, The issue mentioned by OP occurs for me when i run the python data science notebook image in docker and run jupyter lab in the docker container and then try to install the jupyter lab dash extension. |
Hi there,
When I am trying to run Dash in Jupyter Notebook, I am getting following error -
Exception in thread Thread-105:
Traceback (most recent call last):
File "/Users/ssaurabh/anaconda3/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/Users/ssaurabh/anaconda3/lib/python3.7/threading.py", line 1158, in run
self.function(*self.args, **self.kwargs)
File "/Users/ssaurabh/anaconda3/lib/python3.7/site-packages/jupyterlab_dash/init.py", line 71, in _perform_show
""")
OSError:
Unable to communicate with the jupyterlab-dash JupyterLab extension.
Is this Python kernel running inside JupyterLab with the jupyterlab-dash
extension installed?
You can install the extension with:
$ jupyter labextension install jupyterlab-dash
Any idea how I need to run my Python Kernel?
Thanks,
Sangeet
The text was updated successfully, but these errors were encountered: