question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jupyterlab fails in rendering ImageOverlay from file

See original GitHub issue

Trying 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:open
  • Created 6 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
martinRenoucommented, Jul 30, 2020

Would you like to open a PR so you get credits for it?

2reactions
martinRenoucommented, Jul 30, 2020

We should definitely update the documentation (so that it’s simpler to add a cat on a map 😄)

Read more comments on GitHub >

github_iconTop 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 >
JupyterLab JSON rendering - YouTube
Demonstration of rendering a JSON file in JupyterLab.
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found