panel icon indicating copy to clipboard operation
panel copied to clipboard

Panel not working in VS Code notebooks initially

Open MarcSkovMadsen opened this issue 1 year ago • 3 comments

I've created a new virtual environment with

panel==1.4.0 bokeh==3.4.0 ipywidgets==8.1.2 jupyter-bokeh==4.0.1 jupyterlab-widgets==3.0.10 widgetsnbextension==4.0.10 ipykernel==6.29.4

In VS Code I've created a new notebook, don't save it and select my new virtual environment .venv

image

My understanding is that VS Code uses ipykernel in the virtual environment to power the notebook experience. My understanding is that it does not use any python packages outside my virtual environment.

When I run the code it looks like

image

I believe it also sometimes did look like that with Panel 1.3.8. I've just not reported it because trying again use to solve my problems.

It works when I try again

I create a new notebook and save it as Demo.ipynb. This time it works when I run

image

https://github.com/holoviz/panel/assets/42288570/794366f4-4bce-4403-bb91-f18310712f5d

The interactive environment works for me too.

Now an unsaved notebook works for me too.

MarcSkovMadsen avatar Apr 02 '24 05:04 MarcSkovMadsen

I will close this one as "trying again" always solves my issue. Feel free to reopen if this is a big problem for you.

MarcSkovMadsen avatar Apr 02 '24 05:04 MarcSkovMadsen

I'll reopen.

philippjfr avatar Apr 02 '24 13:04 philippjfr

Have you tried running Python: Clear Cache and Reload Window from VSCode Command Palette, after installing the packages (and before trying to use them inside a Notebook)?

rubensa avatar Jun 10 '25 12:06 rubensa