Develop in other notebook environments#
This guide addresses how to develop apps in Google Colab, VSCode, nteract, and other environments.
In the Google Colaboratory notebook, first make sure to load the
pn.extension(). Panel objects will then render themselves if they are the last item in a notebook cell. Please note that in Colab rendering for each notebook cell is isolated, which means that every cell must reload the Panel extension code separately. This will result in somewhat slower and larger notebook than with other notebook technologies.
Visual Studio Code (VSCode) versions 2020.4.74986 and later support ipywidgets, and Panel objects can be used as ipywidgets since Panel 0.10 thanks to
jupyter_bokeh, which means that you can now use Panel components interactively in VSCode. Ensure you install
pip install jupyter_bokeh or
conda install -c bokeh jupyter_bokeh and then enable the extension with
See also the How-To Configure VS Code Guide.
nteract and other ipywidgets notebooks#
In other notebook environments that support rendering ipywidgets interactively, such as nteract, you can use the same underlying ipywidgets support as for vscode: Install
jupyter_bokeh and then use