Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPywidgets do not work with fastapi server #7708

Open
singharpit94 opened this issue Feb 13, 2025 · 0 comments
Open

IPywidgets do not work with fastapi server #7708

singharpit94 opened this issue Feb 13, 2025 · 0 comments
Labels
component: ipywidget Related to rendering IPyWidgets or rendering Panel components as IPyWidgets
Milestone

Comments

@singharpit94
Copy link

Hi,

Thanks for adding support for panel with fastapi, I have an application which also renders IPywidgets and I see that they do not work with fast api server while the same work with panel serve. Is this expected?

Reproducer code

import panel as pn

from fastapi import FastAPI
import ipywidgets as widgets
from panel.io.fastapi import add_application

app = FastAPI()

@app.get("/")
async def read_root():
    return {"Hello": "World"}

@add_application('/panel', app=app, title='My Panel App')
def create_panel_app():
    slider = widgets.IntSlider(
        value=3,
        min=0,
        max=10,
        step=1,
        description='Slider:',
        disabled=False,
        continuous_update=False,
        orientation='horizontal',
        readout=True,
        readout_format='d'
    )

    return slider

Can we add support for IPywidgets?

@philippjfr philippjfr added this to the v1.7.0 milestone Feb 13, 2025
@philippjfr philippjfr added the component: ipywidget Related to rendering IPyWidgets or rendering Panel components as IPyWidgets label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: ipywidget Related to rendering IPyWidgets or rendering Panel components as IPyWidgets
Projects
None yet
Development

No branches or pull requests

2 participants