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:
Matthias Bussonnier 2013-07-10 01:59:53 -07:00
commit 9b08a557e5
2 changed files with 2 additions and 5 deletions

View File

@ -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

View File

@ -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',