Nobel Project Demo

Author(s): Rebecca Vandewalle

This contains educational materials for a demo for the Nobel Project.


Open with CyberGISX



(for viewing purpose only)


Open with CyberGISX

4 Comments

Leave a comment
  1. Declaix commented on November 22, 2020 at 11:19 am

    Reply

    Hi,
    thanks for this page. I spent a lot of time before finding a clear and helpful explanation of how to add a text via folium.
    The problem I have now : I want to add a python string by name, a variable, not a ‘constant’ string. Like for example ” a = ‘sss'” : I want to put “a”, not “sss” in the HTML text.
    Is it possible ?
    Thanks again

  2. beckvalle commented on November 23, 2020 at 10:54 am

    Reply

    You could use something like the following to store your variable name as a text string to be able to use in the HTML. However, this is clunky and it is often better to simply type “a” directly into the HTML, or figure out a way to store the information you need as the variable data not the variable name.

    a = “sss”
    variable_name = [k for k, v in locals().items() if v == “sss”][0]

    Code from: https://www.codespeedy.com/get-a-variable-name-as-a-string-in-python/

  3. BRADLEY commented on January 27, 2021 at 10:38 pm

    Reply

    This article is very helpful and grateful. Thank you for sharing awesome article.

  4. Becky commented on March 25, 2021 at 5:36 pm

    Reply

    Hi there! I understand this is kind of off-topic but
    I needed to ask. Does building a well-established blog like yours require a lot of work?
    I’m completely new to writing a blog but I do write in my diary daily.

    I’d like to start a blog so I can share my experience and views online.
    Please let me know if you have any ideas or tips for brand new
    aspiring bloggers. Appreciate it!

LEAVE A COMMENT

Name and email are required. Your email will not be published.

Please provide a username.
Please provide a valid email
Please input your message.

?>