Skip to content

Commit 2e0867d

Browse files
authored
Use Neutral theme for Inspector (#588)
* Use Neutral theme for Inspector * Catch when theme_name not available
1 parent 6cf45c6 commit 2e0867d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fire/inspectutils.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,10 @@ def Info(component):
256256
"""
257257
try:
258258
from IPython.core import oinspect # pylint: disable=import-outside-toplevel,g-import-not-at-top
259-
inspector = oinspect.Inspector()
259+
try:
260+
inspector = oinspect.Inspector(theme_name="Neutral")
261+
except TypeError: # Only recent versions of IPython support theme_name.
262+
inspector = oinspect.Inspector()
260263
info = inspector.info(component)
261264

262265
# IPython's oinspect.Inspector.info may return '<no docstring>'

0 commit comments

Comments
 (0)