NameError: name ‘get_ipython’ is not defined
You have to run your script with ipython: Then get_ipython will be already in global context. Note: Importing it via from IPython import get_ipython in ordinary shell python will not work as you really need ipython running.