-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Using Panel>=1.3.0 in django_bokeh package #8
Comments
hello, I see the same thing by simply running the example in
Could you please have a look? |
Could you open a new issue in Panel since it probably has to be patched there. |
I was able to patch this in class ConsumerHelper(AsyncConsumer):
_prefix = "/"
@property
def request(self) -> "AttrDict":
request = AttrDict(self.scope)
request["arguments"] = self.arguments
# patch for panel 1.4
request['protocol'] = request.get('scheme')
for k, v in request.headers:
request[k.decode()] = v.decode()
request['uri'] = request.get('path')
return request Do you think this is sufficient, or should changes be made in |
Hi There,
I am using the bokeh-django package to display a panel.chat.ChatInterface on my website.
The chat using the following panel_handler
And is added to the bokeh_app with an autoload
After using the setup instructions for the README I was finally able to display the ChatInterface.
For this, I did have to alter the following in the setting.py
If I use the the resources setting as server, it does not seem to find the static files from Panel.
However when using the inline as setting it does load the chat panel, but I am getting the error that protocol is not a key in the _RequestProxy object. Is this due to changing the bokeh_settings?
Current dependencies are:
bokeh==3.2.0
bokeh-django==0.1.0
channels==3.0.5
daphne==3.0.2
Django==4.2.9
Jinja2==3.1.3
panel==1.3.0
tornado==6.4
The text was updated successfully, but these errors were encountered: