Coder Social home page Coder Social logo

Comments (8)

kylebarron avatar kylebarron commented on June 16, 2024

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.

jc9677 avatar jc9677 commented on June 16, 2024

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.

kylebarron avatar kylebarron commented on June 16, 2024

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.

jc9677 avatar jc9677 commented on June 16, 2024

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.

manzt avatar manzt commented on June 16, 2024

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.

kylebarron avatar kylebarron commented on June 16, 2024

Actually it looks like it's fixed on main, so it was probably fixed by #199

image image

from lonboard.

kylebarron avatar kylebarron commented on June 16, 2024

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.

image

I'll make a new release sometime this week

from lonboard.

jaanli avatar jaanli commented on June 16, 2024

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!!!

image

from lonboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.