as-is True
to-be False
Traceback (most recent call last):
File "decision_tree/test/in_ipython.py", line 32, in <module>
from nbdev.imports import IN_NOTEBOOK
File "/home/peter/github/pete88b/nbdev/nbdev/__init__.py", line 6, in <module>
from .flags import *
File "/home/peter/github/pete88b/nbdev/nbdev/flags.py", line 90, in <module>
for fn in fns: register_line_magic(fn)
File "/home/peter/anaconda3/envs/nbdev-fork/lib/python3.7/site-packages/IPython/core/magic.py", line 229, in magic_deco
raise NameError('Decorator can only run in context where '
NameError: Decorator can only run in context where `get_ipython` exists