startup tweaks

This commit is contained in:
2019-07-16 11:12:25 +02:00
parent 0519848be7
commit d936524c8a
+18 -9
View File
@@ -77,17 +77,26 @@ def main():
term.set_title()
if arguments.shell:
if arguments.pylab:
import matplotlib.pyplot as plt
from IPython.terminal.embed import InteractiveShellEmbed
print('start pylab with %pylab')
from IPython import embed
embed()
# from IPython.terminal.embed import InteractiveShellEmbed
# shell = InteractiveShellEmbed()
# shell.enable_matplotlib()
# shell(dummy=True)
# shell.dummy_mode=True
# shell.enable_pylab()
# shell(arg)
# shell()
shell.magic("pylab")
print('made it here')
# shell.dummy_mode=False
# shell()
shell = InteractiveShellEmbed()
shell.enable_matplotlib()
shell.enable_pylab()
shell()
else:
from IPython import start_ipython
start_ipython()
from IPython import embed
embed()
if __name__ == "__main__":