Comments (8)
You could look for errors in the browser console (right click and choose inspect
to open). Alternatively it could be an issue in your Python-jupyter environment setup. You should also try reloading the page, not just the jupyter kernel, if you haven't done that yet.
from lonboard.
The Jupyter logs below are from the cell in question in north-america-roads.ipynb
(map_ = viz(gdf.geometry, width_min_pixels=0.8)
map_
).
Unfortunately I don't know how to trace the cause. Hoping something stands out for you.
16:41:30.200 [info] Handle Execution of Cells 14 for ~\LONBOARD\north-america-roads.ipynb
16:41:30.203 [info] Kernel acknowledged execution of cell 14 @ 1698439290202
16:41:30.499 [info] End cell 14 execution @ 1698439290327, started @ 1698439290202, elapsed time = 0.125s
16:41:30.970 [info] �[32mFetch Script for {"moduleName":"anywidget","moduleVersion":"0.6.5","requestId":"anywidget:0.6.5:1698439290969"}
16:41:30.970 [info] �[32mFetch Script for anywidget
16:41:30.970 [info] �[32mSearching for Widget Script anywidget#0.6.5 using cdns jsdelivr.com unpkg.com
16:41:31.116 [info] �[32mWidget Script anywidget#0.6.5 found at URI: https://cdn.jsdelivr.net/npm/[email protected]/dist/index.js
16:41:31.117 [info] Script source for Widget [email protected] was found from source cdn
16:41:31.117 [info] �[32mScript for anywidget, is https://cdn.jsdelivr.net/npm/[email protected]/dist/index.js from cdn
16:41:31.126 [warn] Failed to extract require.config from widget for anywidget from ~.vscode-insiders\extensions\ms-toolsai.jupyter-2023.8.1002501831-win32-x64\temp\scripts\e13283a2642f4b869dfd0df99572879ed545f813d17b35b964886c57b19f89d5\jupyter\nbextensions\anywidget\extension.js
16:41:31.134 [info] �[32mFetch Script for anywidget
16:41:31.134 [info] Script source for Widget [email protected] was found from source cdn
16:41:31.134 [info] �[32mScript for anywidget, is https://cdn.jsdelivr.net/npm/[email protected]/dist/index.js from cdn
16:41:31.235 [error] Widget Error: Error: Failed to render widget b4cf712541304e54b473db411c1906c3, TypeError: Cannot read properties of undefined (reading 'widget_manager')
When I run the cell a second time:
16:42:49.007 [info] Handle Execution of Cells 14 for ~\LONBOARD\north-america-roads.ipynb
16:42:49.038 [info] Kernel acknowledged execution of cell 14 @ 1698439369035
16:42:49.099 [error] Widget load failure {} {
className: 'LayoutModel',
moduleName: '@jupyter-widgets/base',
moduleVersion: '2.0.0',
cdnsUsed: false,
isOnline: true,
timedout: false,
error: '{}'
}
16:42:49.315 [info] End cell 14 execution @ 1698439369135, started @ 1698439369035, elapsed time = 0.1s
16:42:49.923 [error] Widget Error: Error: Failed to render widget ecabd564fb5149948f0fe848c57b0714, TypeError: Cannot read properties of undefined (reading 'widget_manager')
`
from lonboard.
16:41:31.126 [warn] Failed to extract require.config from widget for anywidget from ~.vscode-insiders\extensions\ms-toolsai.jupyter-2023.8.1002501831-win32-x64\temp\scripts\e13283a2642f4b869dfd0df99572879ed545f813d17b35b964886c57b19f89d5\jupyter\nbextensions\anywidget\extension.js
You're not in Jupyter, you're in VSCode. VSCode is not currently supported
from lonboard.
Sorry, I had initially mentioned VS Code while drafting the issue but I reworded things and forgot to put it back in. I did try Jupyter in a dedicated env (not tied to VS Code in any way) and couldn't render there either but that must have been a different problem. I will give it another go outside of VS Code. Thanks Kyle!
from lonboard.
anywidget should work in VSCode environments. If i get the chance, i can dig into the devtools to try to see what's going on
from lonboard.
Actually it looks like it's fixed on main, so it was probably fixed by #199
from lonboard.
Yep, I can confirm this was fixed by #199. If I rewind before that commit, I get the following error, which is the same as what was described in manzt/anywidget#369.
I'll make a new release sometime this week
from lonboard.
Ran into this as well -- had to restart the Jupyter kernel in case anyone else is running into this!
This is the library I've been waiting for!!!
from lonboard.
Related Issues (20)
- [EPIC] Document how to report bugs and request features
- 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
- Notes on using Lonboard in a remote (esp JupyterHub) environment HOT 2
- Validate frontend and backend widget versions match HOT 1
- Swipe and sync between two maps
- Record and export animations
- Allow "GeoParquet" input
- Lonboard with tiled data
- Update viz to render polygon exteriors HOT 1
- Update examples to assign CRS on geodataframe
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.