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

bokehjsdir deprecated starting from bokeh 3.4.0 #10

Open
clementhelsens opened this issue May 8, 2024 · 1 comment
Open

bokehjsdir deprecated starting from bokeh 3.4.0 #10

clementhelsens opened this issue May 8, 2024 · 1 comment

Comments

@clementhelsens
Copy link

Hello,

starting from bokeh 3.4.0 bokehjsdir is deprecated. They ask to use bokehjs_path but when doing so, I can't start the server, when running

python manage.py runserver

it just do

Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).

and stops.
Any idea how to fix this?
Thanks

@sdc50
Copy link
Collaborator

sdc50 commented Jun 11, 2024

@clementhelsens This seems to have worked for me:

from bokeh.settings import settings as bokeh_settings

try:
    bokeh_js_dir = bokeh_settings.bokehjs_path()
except AttributeError:
    # support bokeh versions < 3.4
    bokeh_js_dir = bokeh_settings.bokehjsdir()

STATICFILES_DIRS = [
    ...,
    bokeh_js_dir,
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants