Non deterministic zoom level when exporting to Jupyter slides
See original GitHub issuePlease 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:
- Created 5 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top 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 >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
I attach a screencast of the observed behavior:
@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.