Skip to content

Commit

Permalink
optional import ipython
Browse files Browse the repository at this point in the history
  • Loading branch information
jmccreight committed Jun 29, 2024
1 parent 1efef4a commit 1026307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pywatershed/plot/domain_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

import geopandas as gpd
import pandas as pd
from IPython.display import display

from ..base import Parameters
from ..utils import import_optional_dependency

folium = import_optional_dependency("folium")
IPython = import_optional_dependency("IPython")


class DomainPlot:
Expand Down Expand Up @@ -160,7 +160,7 @@ def __init__(
def display(self):
if self.dom_plot is None:
self.make_domain_plot()
display(self.dom_plot)
IPython.display(self.dom_plot)

def add_hru_gdf(self, gdf):
if self.dom_plot is not None:
Expand Down

0 comments on commit 1026307

Please sign in to comment.