8000 Fix minor issues in FastAPI docs by philippjfr · Pull Request #7866 · holoviz/panel · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/how_to/integrations/FastAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ By the end of this guide, you'll be able to run a FastAPI application that serve

## Setup

Following FastAPI's [Tutorial - User Guide](https://fastapi.tiangolo.com/tutorial/) make sure you first have [FastAPI](https://fastapi.tiangolo.com/) and [bokeh-fastapi] installed using:
Following FastAPI's [Tutorial - User Guide](https://fastapi.tiangolo.com/tutorial/) make sure you first have [FastAPI](https://fastapi.tiangolo.com/) and [bokeh-fastapi](https://github.com/bokeh/bokeh-fastapi) installed using:

::::{tab-set}

Expand Down Expand Up @@ -48,9 +48,9 @@ Next we will define a simple Panel application that allows you to control the nu
```python
import panel as pn

from panel.io.fastapi import add_panel_app
from panel.io.fastapi import add_application

@add_panel_app('/panel', app=app, title='My Panel App')
@add_application('/panel', app=app, title='My Panel App')
def create_panel_app():
slider = pn.widgets.IntSlider(name='Slider', start=0, end=10, value=3)
return slider.rx() * '⭐'
Expand Down
Loading
0