Okay - added layering - pass a map in as a variable name  pointing to a map 
in the -b argument:

x = %folium_map -m 52.0250,-0.7084,"My marker"
%folium_map -b x -m 52.02,-0.708,"My other marker"



On Tuesday, 12 December 2017 13:46:13 UTC, Tony Hirst wrote:
>
> @Lawrence
>
> Yeah, I was wondering that... I guess it could return the map object to 
> let you play with it, or pass a map object into it, which would let you 
> build up layers/
> Re: cell magic, I wasn't clear in my own mind how that would work any 
> simpler than just writing py/folium statements?
>
> @Tim
>
> I keep forgetting to look to nteract... thx for reminder
>
> --tony
>
> On Monday, 11 December 2017 04:37:47 UTC, Lawrence D’Oliveiro wrote:
>>
>> On Monday, December 11, 2017 at 7:19:28 AM UTC+13, Tony Hirst wrote:
>>>
>>> Whilst trying to show folk how easy it was to embed interactive maps in 
>>> notebooks using things like folium, I kept getting the response that it 
>>> still required code familiarity which would be a blocker to some. So I 
>>> wondered whether magic might be a way to try to simplify it.
>>>
>>> Example magic here: https://github.com/psychemedia/ipython_magic_folium
>>>
>>>
>> Cool. Can you have other stuff in the same cell? E.g.
>>
>>     ... stuff before ...
>>     %folium ...
>>    ... stuff after ...
>>
>> If not, let me suggest making it a cell magic rather than a line magic. 
>> Then you can also use the rest of the cell contents for purposes such as 
>> adding overlays.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/0ca08c7d-fb4b-4ef9-8172-e67e61ec0276%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to