Skip to content
/ panel Public

Learning how to create interactive apps with plots using Panel (https://panel.holoviz.org/index.html) and ipyleaflet (https://ipyleaflet.readthedocs.io/en/latest/). πŸ“ŠπŸŒŽπŸ“ˆ

Notifications You must be signed in to change notification settings

venuswku/panel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

60 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Create an Environment with Anaconda

Create a new environment named mypanelintro with all the required packages by entering the following commands in succession into Anaconda Prompt (Windows) or Terminal (Mac/Linux):
Skip the command conda install "ipywidgets<8" -y if you installed Panel with a version >= 0.14.0.

conda create -n mypanelintro
conda activate mypanelintro
# Install Panel dependencies.
conda install "ipywidgets<8" -y
conda install -c bokeh ipywidgets_bokeh -y
conda install -c conda-forge panel -y
# Install other optional dependencies for experimenting with Panel.
conda install -c conda-forge ipyleaflet jupyter pandas geopandas leafmap localtileserver keplergl pydeck -y
conda install -c pyviz hvplot bokeh -y

Launch Jupyter Notebook as a Web Server

  • Make sure your Anaconda environment is activated by running conda activate mypanelintro in your terminal.
  • Run the command panel serve --show --autoreload app.ipynb in your terminal.
  • A webpage with the URL http://localhost:5006/app will display all Panel objects marked with .servable().
  • Any changes in the notebook will automatically be reflected on the webpage. Just in case, refresh the webpage to make sure you see your latest changes.
  • If you installed Panel with a version lower than 0.14.0, make sure the installed ipywidgets package in your environment is lower than version 8.0.1.

Launch Jupyter Notebook

  • Make sure your Anaconda environment is activated by running conda activate mypanelintro in your terminal.
  • Run the command jupyter notebook in your terminal.
  • Open the app.ipynb file when a webpage with the URL http://localhost:8888/tree appears.
    • Directly running jupyter notebook app.ipynb will skip this step of selecting a notebook to open.
  • Run all the notebook cells from top to bottom. The Panel app will be outputted after the last cell is run.
  • Reload the app.ipynb webpage when you want to see your new changes.

Learning Resources

Panel

data Folder

bokeh.plotting

pandas

Other Documentation

About

Learning how to create interactive apps with plots using Panel (https://panel.holoviz.org/index.html) and ipyleaflet (https://ipyleaflet.readthedocs.io/en/latest/). πŸ“ŠπŸŒŽπŸ“ˆ

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published