Skip to content

Commit

Permalink
Multi panel
Browse files Browse the repository at this point in the history
  • Loading branch information
neelasha23 committed May 27, 2024
1 parent 742d883 commit ed55404
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/panel/multi-page-app/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM python:3.11-slim-bookworm

WORKDIR /srv

COPY requirements.txt /srv/
RUN pip install -r requirements.txt --no-cache-dir

COPY . /srv

# Run the application
CMD ["python", "app.py"]
13 changes: 13 additions & 0 deletions examples/panel/multi-page-app/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import panel as pn

pn.extension()

first = pn.panel("first")
second = pn.panel("second")

apps = {
"first": first,
"second": second,
}

pn.serve(apps, port=80, address="0.0.0.0", allow_websocket_origin=['*'])
Binary file added examples/panel/multi-page-app/app.zip
Binary file not shown.
1 change: 1 addition & 0 deletions examples/panel/multi-page-app/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
panel

0 comments on commit ed55404

Please sign in to comment.