[IPython-User] new profile based on pylab
elmar werling
elmar@net4werling...
Sat Sep 29 13:22:25 CDT 2012
Hi,
i want to create a new profile based on the standard pylab profile. The
ipython_config below is not working.
Any help is wellcome
Elmar
the ipython_config.py for the new profile
#########################################################
c = get_config()
load_subconfig('ipython_config.py', profile='pylab.py')
lines = """
from __future__ import division
import numpy as np
import pandas as pd
"""
app = c.InteractiveShellApp
if hasattr(app, 'exec_lines'):
app.exec_lines.append(lines)
else:
app.exec_lines = [lines]
#########################################################
More information about the IPython-User
mailing list