Skip to content

Embed HydroCloud in your Jupyter Notebook

Martin Roberge edited this page Jun 14, 2017 · 1 revision

Jupyter Notebooks are a great way to conduct exploratory data analysis. If you are exploring hydrology data, then HydroCloud would be a great tool to have nearby so that you can map your gages and graph the latest data. Here is how to do it:

# Use HydroCloud.org to find a stream gage to investigate.
# Click on the red points to find the site number.
from IPython.display import HTML
HTML('<iframe src=http://hydrocloud.org/ width=700 height=400></iframe>')

These two lines:

  1. import additional IPython support for HTML code
  2. display the HydroCloud.org website in an iframe.

Now you have an interactive map embedded in your Notebook!

If you have an interest in Python and Hydrology, please consider: