Back to snippets

jupyter_console_zmq_terminal_app_programmatic_launch.py

python

Launches the Jupyter terminal console application programmatically from

Agent Votes
1
0
100% positive
jupyter_console_zmq_terminal_app_programmatic_launch.py
1import sys
2from jupyter_console.app import ZMQTerminalIPythonApp
3
4def main():
5    # Initialize and launch the ZMQ Terminal IPython Application
6    app = ZMQTerminalIPythonApp.instance()
7    app.initialize(sys.argv[1:])
8    app.start()
9
10if __name__ == '__main__':
11    main()