Skip to content

Commit

Permalink
Remove notebook argument from kwargs to prevent useless warning
Browse files Browse the repository at this point in the history
  • Loading branch information
PProfizi committed Nov 23, 2023
1 parent 8a897e7 commit fdedf49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ansys/dpf/core/meshed_region.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ def plot(
show_axes=kwargs.pop("show_axes", True),
**kwargs,
)
kwargs.pop("notebook", None)
return pl.show_figure(**kwargs)

def deep_copy(self, server=None):
Expand Down
1 change: 1 addition & 0 deletions src/ansys/dpf/core/meshes_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def plot(self, fields_container=None, deform_by=None, scale_factor=1.0, **kwargs
**kwargs,
)
# Plot the figure
kwargs.pop("notebook", None)
return pl.show_figure(**kwargs)

def get_meshes(self, label_space):
Expand Down
1 change: 1 addition & 0 deletions src/ansys/dpf/core/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ def plot(self, color="w", show_edges=True, **kwargs):
kwargs["show_edges"] = show_edges
pl = DpfPlotter(**kwargs)
pl.add_mesh(self.metadata.meshed_region, show_axes=kwargs.pop("show_axes", True), **kwargs)
kwargs.pop("notebook", None)
return pl.show_figure(**kwargs)

@property
Expand Down

0 comments on commit fdedf49

Please sign in to comment.