AttributeError: ‘NoneType’ object has no attribute ‘magic’

This makes sense, however iif I am inside Jupyter, I can just use %matplotlib inline. I believed the IPython module was there just to provide code portability, meaning I would expect the IPython module to take care of the environment and get_ipython().magic(u’matplotlib inline’) to do nothing (or the best approximation) if the command is not supported, so I can call the code from everywhere.

Read More