mwcraig / ipyevents

A custom widget for returning mouse and keyboard events to Python. Documentation:
https://ipyevents.readthedocs.io/en/latest/index.html
BSD 3-Clause "New" or "Revised" License
115 stars 27 forks source link

ipyevents not working with VS Code #87

Closed giswqs closed 11 months ago

giswqs commented 1 year ago

Got the following error with VS Code.

image

matthew-wtx commented 1 year ago

I'm seeing the same issue

fratambot commented 1 year ago

@giswqs have you found a solution ? I'm having the same error, specifically when plotting a leafmap with a raster added. And the raster layer is invisible. This is the error:

11:17:05.225 [error] Widget load failure {} {
  className: 'EventModel',
  moduleName: 'ipyevents',
  moduleVersion: '2.0.2',
  cdnsUsed: false,
  isOnline: true,
  timedout: false,
  error: '{}'
}

Weirdly enough, on my local VS code the raster appears, nonetheless, but on the remote VS code hosted by the server the raster is invisible :(

EDIT: the ipyevents error is not related to the invisible raster layer (it's a localtileserver issue) and it's not blocking for me whatsoever.

mwcraig commented 1 year ago

The underlying issue is that I hadn't published the package to npm, I only published to PyPI. I'll try to get the npm upload done today.

mwcraig commented 1 year ago

I think is working now -- can folks give it a try and report back?

If you don't mind also including a brief (like <1 sentence) description of how you are using it that would be great.

matthew-wtx commented 1 year ago

@mwcraig I upgraded from 2.0.1 to 2.0.2 and am happy to report that it is working. I'm using ipyevents to build a simple gui in a jupyter notebook that enables clicking on an image to mark points in the image.

mwcraig commented 11 months ago

thanks @matthew-wtx!

I'm going to mark this as closed, but feel free to reopen if VS Code stops working