-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Interactive Graphs Don't Update in VSCode #5752
Comments
You are using a really old version of Holoviews (and, by the looks of it, also other packages). Try updating to the latest versions from a fresh environment. (The latest holoviews version is 1.16.2) |
One of the issues here is likely the pinning of an older HoloViews version. Regardless, I also recommend trying the latest HoloViews. |
What version of holoviews did you download? If it is 1.16.1, try: |
Package versionsbokeh: 3.1.1 Setting |
Can you try to install jupyter_bokeh=3.0.7? If that does not work, can you give me the full package list of your environment with |
Sadly installing jupyter_bokeh=3.0.7 didn't fix the issue either. Here is my full environment: All packagesName Version Build Channel_libgcc_mutex 0.1 main |
The example works in my VSCode, and I can't see any clear difference between your and mine environment. Can I get you to run Some suggestions which could work:
|
I think I discovered the problem, but I am unsure if it is solvable! I did what you suggested and created a new environment using conda-forge, and this didn't work. However, I did this on a different computer, and the environment did work ("work" as in the interactivity was functional on this new computer). The key difference is that I have been using the SSH extension in VSCode to SSH into an analysis computer, and when I am SSHing into the analysis computer the interactivity is NOT functional in the .ipynb file in VSCode. I am guessing this is the issue? Thank you for all your help! |
If possible, can you check the output from the following running inside a notebook? import os
sorted(k for k in os.environ if "VSCODE" in k) |
This is the output from running the code above: ['VSCODE_AGENT_FOLDER', |
Okay. The automatic detection of vs code should be improved with #5792. Until then, can you try adding a cell at the top of the notebook with the following in it and see if that enables interactive graphs in vs code? import panel as on
pn.config.comms = "vscode" |
I get the following error when I try to run the line above: ValueError: vscode not in Parameter _comms's list of possible objects, valid options include [default, ipywidgets] |
When I change the kernel the error goes away. I was using my old environment with pinned version numbers. Let me try with a fresh environment. When I use a new environment it fixes the issue! Thank you so much for your help, that's great that it works. Now I will just have to stop using the old environment for our data preprocessing. |
Thanks so much for sticking through the issue @austinbaggetta and providing us with so much useful info. |
ALL (relevant) software version info
Python packages
holoviews: 1.12.7
jupyter: 1.0.0
jupyter_client: 7.3.4
jupyter_console: 6.6.3
jupyter_core: 5.3.0
jupyter_server: 1.23.6
jupyterlab_pygments: 0.2.2
jupyterlab_widgets: 3.0.7
numpy: 1.20.2
Visual Studio Code related info
Version: 1.78.1 (user setup)
Commit: 6a995c4f4cc2ced6e3237749973982e751cb0bf9
Date: 2023-05-04T09:48:08.683Z
Electron: 22.5.1
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.22000
Sandboxed: Yes
Description of expected behavior and the observed behavior
Based on the documentation, when the value of the slider changes, the graph's output should also change. However, in VSCode, this is not the case. I have observed this with multiple graphs and the issue does not seem limited to sliders. Any help would be greatly appreciated!
Complete, minimal, self-contained example code that reproduces the issue
Screenshots or screencasts of the bug in action
The text was updated successfully, but these errors were encountered: