Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't display the Map items in Atom with hydrogen, python and folium #1069

Open
alexlauforgithub opened this issue Oct 28, 2017 · 5 comments
Labels
awaiting update Waiting for response/new news enhancement 🌟 New feature ideas language specific Not universal in all languages

Comments

@alexlauforgithub
Copy link

alexlauforgithub commented Oct 28, 2017

When I run this

folium.Map([41.8781, -87.6298], zoom_start=11)

It will display a map in Jupyter notebook like this,

https://i.stack.imgur.com/bhFNm.jpg

but when I type the same code in Atom, it display nothing.

https://i.stack.imgur.com/LsqAi.png

I'm curious that hydrogen is jupyter-notebook-based, why doesn't it work?

Thanks a lot!

Versions:

MacOS 10.12.6

Atom : 1.21.1

@alexlauforgithub alexlauforgithub changed the title Can't display the Map in Atom with hydrogen and folium Can't display the Map items in Atom with hydrogen, python and folium Oct 28, 2017
@lgeiger lgeiger added the language specific Not universal in all languages label Nov 5, 2017
@lgeiger
Copy link
Member

lgeiger commented Dec 10, 2017

It looks like folium returns a javascript bundle to render which cannot be viewed in Atom due to content security policy issues. Since Atom is a desktop app it doesn't allow inline scripts to be executed from unknown sources.

@rgbkrk I'm wondering if we'd be able to support this via the geo-json transform in nteract.

@lgeiger lgeiger added the enhancement 🌟 New feature ideas label Dec 10, 2017
@rgbkrk
Copy link
Member

rgbkrk commented Dec 10, 2017

Sure seems possible, folium does have a geojson export function IIRC.

@Lokdal
Copy link

Lokdal commented Jan 20, 2019

I would really like to see this implemented in Hydrogen. Unless there is a known workaround that I couldn't find already?

@kylebarron
Copy link
Contributor

@leebut
Copy link

leebut commented Jun 9, 2019

I'm just starting to learn about folium, and it's a pity maps don't work with Hydrogen.

@wadethestealth wadethestealth added the awaiting update Waiting for response/new news label Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting update Waiting for response/new news enhancement 🌟 New feature ideas language specific Not universal in all languages
Projects
None yet
Development

No branches or pull requests

7 participants