mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-18 11:55:46 +08:00
Merge pull request #3538 from minrk/launch_ip
add IPython.start_ipython A public API for starting a real (non-embedded) IPython instance. should avoid API breakage in the future due to simple module renames, as has just happened with the removal of frontend. For implementation purposes, I have added launch_new_instance as a classmethod on Application. I did this, because I wanted to add the ability to pass arguments to the instance, and didn't want to manually update every duplicate launch_new_instance. closes #1537
This commit is contained in:
commit
9b08a557e5
@ -739,8 +739,5 @@ class NotebookApp(BaseIPythonApplication):
|
||||
# Main entry point
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
def launch_new_instance():
|
||||
app = NotebookApp.instance()
|
||||
app.initialize()
|
||||
app.start()
|
||||
launch_new_instance = NotebookApp.launch_instance
|
||||
|
||||
|
@ -315,7 +315,7 @@ def find_scripts(entry_points=False, suffix=''):
|
||||
"""
|
||||
if entry_points:
|
||||
console_scripts = [s % suffix for s in [
|
||||
'ipython%s = IPython.terminal.ipapp:launch_new_instance',
|
||||
'ipython%s = IPython:start_ipython',
|
||||
'pycolor%s = IPython.utils.PyColorize:main',
|
||||
'ipcontroller%s = IPython.parallel.apps.ipcontrollerapp:launch_new_instance',
|
||||
'ipengine%s = IPython.parallel.apps.ipengineapp:launch_new_instance',
|
||||
|
Loading…
Reference in New Issue
Block a user