jupyterlab fails in rendering ImageOverlay from file
See original GitHub issueTrying to load a jpg
image in ipyleaflet
using ImageOverlay
I got different behaviour between the standard notebook interface and jupyterlab.
The following code work in a standard notebook but fail to render the image (404 error) in jupyterlab.
from ipyleaflet import (
Map, ImageOverlay, TileLayer
)
m = Map(default_tiles=TileLayer(opacity=1.0), center=meta['C'], zoom=12)
meta = {'C': (41.066192631345636, -68.91168330924846),
'LL': (41.06314714201035, -68.93226141787825),
'UR': (41.06923444219005, -68.89110330910114),
'proj': '+proj=utm +zone=19 +datum=WGS84 +units=m +no_defs ',
'raster': 'test.jpg'}
layer = ImageOverlay(url=meta['raster'],
bounds=(meta['LL'], meta['UR']))
m.add_layer(layer)
This notebook may help to reproduce the issue.
If using a an url pointing to a fileonline, in jupyterlab, the image is rendered correctly.
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Jupyter lab File Load Error for filename.ipynb Failed to fetch
I am running a jupyter lab instance on a remote server which I connect to with a public IP address. Recently the error...
Read more >Troubleshooting in Python - Plotly
How to troubleshoot import and rendering problems in Plotly with Python. ... It's very important that you not have a file named plotly.py...
Read more >Http 500 when render with lumen - Jupyter Community Forum
When I create a txt file in jupyterlab 3.2.5 the notebook menu shows the ... button i get “500: Internal Server Error” and...
Read more >Display Troubleshooting — Altair 4.2.0 documentation
For example, Altair charts will not render in any version of Internet Explorer. If this is the case, you will likely see syntax...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Would you like to open a PR so you get credits for it?
We should definitely update the documentation (so that it’s simpler to add a cat on a map 😄)