Skip to content

Commit

Permalink
PEP
Browse files Browse the repository at this point in the history
  • Loading branch information
DKilkenny committed Jan 27, 2021
1 parent d84f9e8 commit 4497109
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion openmdao/core/notebook_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@


def notebook_mode():
"""
Check if the environment is interactive and if tabulate is installed.
Returns
-------
bool
True if the environment is an interactive notebook.
"""
ipy = False
try:
from IPython import get_ipython
Expand All @@ -18,4 +26,5 @@ def notebook_mode():
"install required dependencies. Using ASCII for outputs.")
return ipy

notebook = notebook_mode()

notebook = notebook_mode()

0 comments on commit 4497109

Please sign in to comment.