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.

Non deterministic zoom level when exporting to Jupyter slides

See original GitHub issue

Please add a code sample or a nbviewer link, copy-pastable if possible

http://nbviewer.jupyter.org/format/slides/gist/Juanlu001/7feeffbada57114423d68fe0bf491352#/0/1

Problem description

[this should explain why the current behavior is a problem and what is the expected output.]

When opening the link above, sometimes I get a zoomed map and sometimes I get a world map. It depends on F5 versus Ctrl+F5 and has a random result. Tested on Linux Mint 18.3 with both Firefox and Chromium.

Expected Output

Always a zoomed map.

Output of folium.__version__

$ python -c "import folium as f;print(f.__version__)"
0.5.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
astrojuanlucommented, May 31, 2018

I attach a screencast of the observed behavior:

ezgif com-optimize

0reactions
ocefpafcommented, Nov 9, 2018

@Juanlu001 I looked into this and I could not find the culprit. Something with revealjs does not play well with how we are loading all the folium JS deps. Closing this as “unsolvable” but I’ll keep looking into a better way ti isolate things.

PS: note that the m.fit_bounds(m.get_bounds()) may help you there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jupyter Notebook Enhancements, Tips And Tricks - fastai
This thread is dedicated to Jupyter Notebook enhancements and related goodies. Please contribute your tips and improvements that make our lives easier.
Read more >
Jupyter Documentation - Read the Docs
This information gives a high-level view of using Jupyter ... The config directory for Jupyter data files, which contain non-transient, ...
Read more >
Tips for Creating Slideshows in Jupyter | Mark Roepke
This post dives a little deeper by providing key tips on creating better-looking slides, customizing formatting, exporting to HTML, hosting ...
Read more >
Available CRAN Packages By Date of Publication
2022-12-16, ThreeArmedTrials, Design and Analysis of Clinical Non-Inferiority or Superiority Trials with Active and Placebo Control.
Read more >
yFiles WPF - Changelog - yWorks
Viewport animations no longer suddenly stop when the zoom level is near ... could lead to non-deterministic behavior for consecutive layout calculations.
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