Description of expected behavior and the observed behavior
I want to run a panel app behind a FastAPI server. When following the simple example in official panel tutorial, everything works out well. However, if one goes a little further and tries to run an app based on a panel template, the tutorial breaks down.
Complete, minimal, self-contained example code that reproduces the issue
ALL software version info
OS: Arch Linux Browser: Firefox and Chromium
Description of expected behavior and the observed behavior
I want to run a panel app behind a FastAPI server. When following the simple example in official panel tutorial, everything works out well. However, if one goes a little further and tries to run an app based on a panel template, the tutorial breaks down.
Complete, minimal, self-contained example code that reproduces the issue
Here is a repo with everything necessary to reproduce. TL;DR I've combined the FastAPI example with the example in the documentation of the
pn.templates.FastListTemplate
.Screenshots or screencasts of the bug in action
panel serve app.py
viewed underhttp://localhost:5006/app
uvicorn main:app
viewed underhttp://127.0.0.1:8000/