is plotly.express supported in the python notebook

Hello,

I am trying to create some of these graphs in here: https://plot.ly/python/scatter-plots-on-maps/ and wondering if plotly.express is supported. I see that plotly is supported but when I tried running this statement  "import plotly.express as px", it returned SyntaxError: invalid syntax so wondering.

 

Thanks

7replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Hi Ngoc Hoang , plotly.express is currently not supported. That said, our team is currently working on updating our Plotly python version!

    Also, as a future reference, you can find the latest version of our supported libraries within the help docs. 😃 Please let me know if you have any further questions or concerns! 

    Like
  • Hi Francisco Mosqueda , thanks for your reply. Is there an option in Mode to do a map like the first one in this site:

     

    https://plot.ly/python/scatter-plots-on-maps/

     

    Thanks

    Like
  • Francisco Mosqueda This is pretty close to what I am looking for: https://mode.com/example-gallery/geographic-heat-map/

     

    Is there a way to add a functionality to hover over to the heat area and it shows details? 

     

    Thanks

    Like
  • Hi Ngoc Hoang Unfortunately, we do not have any example reports with that functionality. I was able to find a similar report to the chart you shared above:
    https://app.mode.com/modeanalytics/reports/23e54b928f78

    I hope that helps! 

    Like
  • Hi Francisco Mosqueda , this is great, 1 last question. I see this block of code in the HTML

     

    <mode-python id="python_2604adde4789" options="python_options"></mode-python>

     

    how do I find the id of the python notebook in the dashboard that I am working on?

     

    Thanks

    Like
  • Nice blog,I understood the topic very clearly,And want to study more like this.
    Data Scientist Course

    Like
  • Hi Ngoc Hoang ! 

    You can find the <mode-python> tag and the ID via the HTML editor, which you can open up in the Report Builder like so:

     If you have a whole bunch of Python charts, the order of the mode-python tag in the HTML code will be identical to how your python elements are laid out in the report. 

    Like
Like1 Follow
  • Status Answered
  • 1 Likes
  • 1 mth agoLast active
  • 7Replies
  • 35Views
  • 4 Following