-
Notifications
You must be signed in to change notification settings - Fork 23
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
use bokeh_fastapi through panel #503
Conversation
ragna/core/_components.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes in this file are drivebys of stuff missed in d869bd0.
for dir in ["css", "imgs"]: | ||
app.mount( | ||
f"/{dir}", | ||
StaticFiles(directory=str(Path(__file__).parent / "_ui" / dir)), | ||
name=dir, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably go into BokehFastapi
under a static_dirs
keyword similar to what pn.serve
does.
Re #503 (comment). The only difference I found is that the chat interface now seems to fill the whole vertical space of its container whereas before it only occupied the middle area.
|
I just realized that the document pill in the top-right corner is also missing for |
@pierrotsmnrd We can use the |
@pmeier the document pills are missing because we never pass this check. As for why the |
For reference, the current Can I get some backstory on why it was removed? Should I just be adding in the new FileDropper widget from Panel and styling it to look similar to the custom one? Or should I be trying to make the old one work (looks like there has already been code changes in a separate PR to move beyond the custom one)? |
We had a custom widget because we previously used a complex system to upload documents. In the first step we registered the document with the API and got back a location where to upload the document to. This was usually our server, but could also be an S3 bucket or the like. While very flexible, that also brought a lot of complex handling. We removed that in favor of always uploading to local in #441. I've hot-patched the UI code in #443 to make it work again. The code is messy right now, but that is my problem not yours.
I've asked myself the same in #503 (comment). I guess this is a good move going forward, but I don't want to keep this PR up forever.
My vote is out for trying to get the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Kim for helping us out here. There are some CI failures remaining, but I'll fix them in follow-up PRs to avoid piling in to many things here!
holoviz/panel#7205 adds support for
bokeh_fastapi
insidepanel
. This PR is here to test if everything works. cc @philippjfr