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
- Make sure your Anaconda environment is activated by running
conda activate mypanelintroin your terminal. - Run the command
panel serve --show --autoreload app.ipynbin 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 installedipywidgetspackage in your environment is lower than version8.0.1.- See reason for
ipywidgets<8here: holoviz/panel#3778 (comment). - Check the version of your installed packages by running
conda list.
- See reason for
- Make sure your Anaconda environment is activated by running
conda activate mypanelintroin your terminal. - Run the command
jupyter notebookin your terminal. - Open the
app.ipynbfile when a webpage with the URL http://localhost:8888/tree appears.- Directly running
jupyter notebook app.ipynbwill skip this step of selecting a notebook to open.
- Directly running
- Run all the notebook cells from top to bottom. The Panel app will be outputted after the last cell is run.
- Reload the
app.ipynbwebpage when you want to see your new changes.
Panel
data Folder
dataFolder's GeoJSON Files- Sample
csv(Comma Separated Values, aka Excel) File from CoastTrain - Sample Data from
bokeh - Elwha Topo-Bathy Data
bokeh.plotting
figure()Documentation- Plotting
pandasDataFrame withbokeh.plotting - Modifying Markers in Scatter Plot
scatter()to Use Built-In MarkersDatetimeTickFormatterto Format Ticks on Plot Axes
pandas
Other Documentation