bokeh / ipywidgets_bokeh

Allows embedding of Jupyter widgets in Bokeh applications.
BSD 3-Clause "New" or "Revised" License
23 stars 11 forks source link

Panel Leafmap: 404 GET /static/extensions/ipywidgets_bokeh/3dfd3127e3794acab459.woff2 #107

Open MarcSkovMadsen opened 4 months ago

MarcSkovMadsen commented 4 months ago

I'm trying to get leafmap working with Panel similarly to Solara-Leafmap.

A lot of features work. But when in the logs of the server I see

2024-06-12 15:02:46,472 404 GET /static/extensions/ipywidgets_bokeh/3dfd3127e3794acab459.woff2 (127.0.0.1) 0.70ms
2024-06-12 15:02:46,532 404 GET /static/extensions/ipywidgets_bokeh/a32e68d9472b3557a6a2.woff (127.0.0.1) 0.55ms
2024-06-12 15:02:46,723 404 GET /static/extensions/ipywidgets_bokeh/483f64f5a997c40908d9.ttf (127.0.0.1) 0.88ms
import leafmap

import panel as pn

pn.extension("ipywidgets")

widget = leafmap.Map()

layout = pn.Column(
    widget,
).servable()
panel serve app.py
Name: bokeh
Version: 3.4.1
Location: /home/jovyan/repos/private/panel/.venv/lib/python3.11/site-packages
Requires: contourpy, jinja2, numpy, packaging, pandas, pillow, pyyaml, tornado, xyzservices
Required-by: ipywidgets-bokeh, panel
---
Name: ipywidgets-bokeh
Version: 1.6.0
Location: /home/jovyan/repos/private/panel/.venv/lib/python3.11/site-packages
Requires: bokeh, ipykernel, ipywidgets
Required-by:
---
Name: leafmap
Version: 0.33.0
Location: /home/jovyan/repos/private/panel/.venv/lib/python3.11/site-packages
Requires: bqplot, colour, duckdb, folium, gdown, geojson, ipyevents, ipyfilechooser, ipyleaflet, ipywidgets, matplotlib, numpy, pandas, plotly, pyshp, pystac-client, python-box, scooby, whiteboxgui, xyzservices
Required-by:
---
Name: panel
Version: 1.5.0a3.post1.dev124+g5b59d248.d20240606
Location: /home/jovyan/repos/private/panel/.venv/lib/python3.11/site-packages
Editable project location: /home/jovyan/repos/private/panel
Requires: bleach, bokeh, linkify-it-py, markdown, markdown-it-py, mdit-py-plugins, packaging, pandas, param, pyviz-comms, requests, tqdm, typing-extensions
Required-by:
aulemahal commented 3 months ago

I have the same issue. My installation of ipywidgets_bokeh 1.6.0 was done through pip in a docker container. The folder ENV/lib/python3.11/site-packages/ipywidgets_bokeh/dist/ does not contain any font files. Neither do the wheels on pypi. I think the issue is simply that MANIFEST.in does not include the font files!

In fact, I'm not sure I see why any files generated in the dist folder should be excluded, maybe the easy fix is simply to recursive-include all files?