Skip to content

Commit

Permalink
change show option
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffckerr committed Oct 23, 2022
1 parent 53ddf9a commit e11bfdf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions covasim/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class Options(sc.objdict):
- font: the font family/face used for the plots
- fontsize: the font size used for the plots
- interactive: convenience method to set show, close, and backend
- jupyter: defaults for Jupyter (change backend and figure close/return)
- jupyter: defaults for Jupyter (change backend and figure return)
- show: whether to show figures
- close: whether to close the figures
- backend: which Matplotlib backend to use
Expand Down Expand Up @@ -241,8 +241,6 @@ def set(self, key=None, value=None, use=False, **kwargs):
jupyter = 'retina' # Default option for True
if 'returnfig' not in kwargs:
kwargs['returnfig'] = False # We almost never want to return figs from Jupyter, since then they appear twice
if 'show' not in kwargs:
kwargs['show'] = False
try:
if not os.environ.get('SPHINX_BUILD'): # Custom check implemented in conf.py to skip this if we're inside Sphinx
if jupyter == 'retina': # This makes plots much nicer, but isn't available on all systems
Expand Down

0 comments on commit e11bfdf

Please sign in to comment.