startup tweaks
This commit is contained in:
+18
-9
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user