Comments (2)
Unsurprisingly, there's been discussion on this before. See especially manzt/anywidget#385 (comment).
Note that the architecture of anywidget is that anywidget serves as a bridge between "fully bundled" widgets that need to be installed in full on the server and "dynamically imported" widgets. Anywidget itself loads the JS from the anywidget-based widget. Therefore only a compatible version of anywidget needs to be installed on the server. In our case, lonboard does not need to be installed on the server, only anywidget.
There are further questions about ensuring compatible versions of anywidget between frontend and server, but that's a more general question outside of lonboard's scope.
Solara also does some nice checks around this: manzt/anywidget#385 (comment)
from lonboard.
FWIW In my own IPYwidget library buckaroo, I addressed some of this.
Users frequently pip installed the library without restarting the server. This causes a JS error with no python error. I added a check on the MTime of the python library, and the start time of the server.
https://github.com/paddymul/buckaroo/blob/main/buckaroo/widget_utils.py#L37-L55
I'm interested to hear about other approaches around this problem. It's a really poor experience for an initial user install. Maybe you could source the JS from unpackage when the user would encounter the problem.
from lonboard.
Related Issues (20)
- Handle WKB-typed GeoArrow columns
- Raise warning for input without CRS
- Host executed docs notebooks in s3 bucket HOT 1
- Add support for OrthographicView HOT 3
- Bug: Allow non-served HTML export for polygon layer
- Default colors in viz
- Create a Bug Issue Template
- Create a Feature Request Issue Template
- Update README to include notes on using the new issue templates HOT 2
- [BUG] Get ArrowInvalid on what should be a valid GeoJSON file HOT 1
- Export Map to HTML zipfile HOT 1
- Validate frontend and backend widget versions match HOT 1
- Swipe and sync between two maps
- Record and export animations HOT 4
- Allow "GeoParquet" input
- Lonboard with tiled data
- Update viz to render polygon exteriors HOT 1
- Update examples to assign CRS on geodataframe
- Support deck.gl v9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lonboard.