Panel not working in VS Code notebooks initially
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
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
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
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.
I will close this one as "trying again" always solves my issue. Feel free to reopen if this is a big problem for you.
I'll reopen.
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)?