Panel apps
Environment requirements
Your conda environment (used in JHub Apps Launcher's App creation form) must have the following packages for successful app deployment:
jhsingle-native-proxy
>= 0.8.2panel
bokeh-root-cmd
>= 0.1.2nbconvert
- Other libraries used in the app
note
In some cases, you may need ipywidgets
and ipywidgets-bokeh
Code requirements
If you use Panel templates, for example the Material template, make sure to use it through pn.template.MaterialTemplate()
instead of pn.extension(design='material', template='material')
.
You can write Panel apps in Jupyter Notebooks or Python scripts. If you use Jupyter Notebooks, you need to include nbconvert
in your conda environment.
Example application
To deploy the Panel Iris Kmeans Example using JHub Apps, you can use the following (slightly updated) code and environment: