-
Notifications
You must be signed in to change notification settings - Fork 47
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
Not working in VS Code #131
Comments
@MarcSkovMadsen Right, extension version 3.0 exists because it is known and established that the 2.0 version does not work with jupyter-lab 3.0. We were made abundantly an d continuously aware of this over the course of several months, so there is no need to re-tread that. As @philippjfr noted elsewhere, it seems we may be forced to publish NPM versions of the extensions after all, in order to support VScode, which is mightily annoying. |
@bryevdv Is there much difficulty involved in publishing to npm? We don't necessarily have to advertise it or document it I believe since I think VSCode will automatically try to pull in the extension from npm. |
It's just one more thing to worry about. I'd feel better when/if this repo is automated CI |
Thanks for your comment @bryevdv . I'm sorry but I don't have the context for understanding the comment. I'm not sure what you are trying to say here?
As I understand this comment you recognize that VS Code is not working with version 3.0 of this package? |
I'm saying that pointing out that the combination of jlab 3.x and jupyter_bokeh 2.x do not function together ("comms after downgrading do not work", which has nothing to do with vscode) is very much redundant and unnecessary at this point.
I don't use VScode for anything except an editor, and I don't really use Jupyter at all either, so I will certainly take your word for it. |
@bryevdv I'd be happy to take a stab at automation. If I could get 20 minutes of your time, maybe on Friday I'll try to set that up on GH Actions. Are the PyPI, conda and npm tokens already set up as Bokeh Org secrets? |
Not in this repo but I will add them |
Not sure if it's worth it (or potentially a security risk) but on HoloViz I've just set them up at the org level. |
FYI. I'm working on enabling Panel users to explore the example and gallery notebooks on Binder. And I have installed VS Code there as well. My aim is to show how powerful a combination Panel and VS Code can be. Especially with the panel-binder.mp4And I would also like to be able to offer the powerful combination of Panel and VS Code on a Jupyter Hub at work :-) |
That's on me. Will work on that tomorrow. |
Any news on this? |
Yes, I just released 3.0.2 to PyPI and NPM with the needed fixes. Should work now. |
From my initial experiments its still not working. I will continue some other time. |
I started with a fresh python environment instead of upgrading an existing. That worked. panel_working.mp4I close this one. Notes from Test$ "C:\Python38\python.exe" -m venv .venv
$ source .venv/Scripts/activate
$ pip install -r requirements.txt
Collecting panel==0.11.3
Using cached panel-0.11.3-py2.py3-none-any.whl (9.0 MB)
Collecting jupyter_bokeh==3.0.2
Downloading jupyter_bokeh-3.0.2-py3-none-any.whl (1.4 MB)
|████████████████████████████████| 1.4 MB 2.2 MB/s
Collecting jupyterlab
Using cached jupyterlab-3.0.16-py3-none-any.whl (8.2 MB)
Collecting voila
Downloading voila-0.2.10-py3-none-any.whl (1.6 MB)
|████████████████████████████████| 1.6 MB 6.4 MB/s import panel as pn
pn.extension(comms="vscode")
widget = pn.widgets.FloatSlider(start=0.0, end=10.0, value=2.0, step=0.1)
widget
pn.Column(widget, widget.param.value) Thanks @philippjfr. This is so great to get working again. Will boost my productivity and help showcase how great Panel works...also in VS Code. panel_working.mp4 |
I'm also trying to use Panel in VSCode, but it failed to render. Could you provide a minimum starter project for panel or a dependency list? My env is: macOS 13.3.1 I've tried your code in my VSCode, and it renders nothing: I really have no idea about this. |
I faced exactly the same issue as @xareelee (no output rendering inside vscode, but working in browser jupyter-lab for instance ; using all the latest versions of panel, jupyter_bokeh at the time of my writing).
and
Solution was to run following line: import bokeh.io
bokeh.io.output_notebook() It prints "BokehJS 3.3.2 successfully loaded." and after that, panel widgets work! |
For the record |
THIS IS A COPY OF holoviz/panel#2145
OS: Windows
Python: 3.8
Panel: current master
jupyter_bokeh: 3.0.0
notebook: 6.3.0
I can see that the current Panel MASTER branch does not work in VS Code via
jupyter_bokeh
.Steps
python -m venv .venv source .venv/Scripts/activate pip install git+https://github.com/holoviz/panel.git pip install jupyter_bokeh
In the Jupyter interactive notebook run (select code and click SHIFT+ENTER).
and see the error
Error
Screenshot
The text was updated successfully, but these errors were encountered: