##// END OF EJS Templates
Fix imports for plain terminal ipython and use a proper warn() call.
Fernando Perez -
Show More
@@ -44,7 +44,7 b' from .config.loader import Config'
44 44 from .core.getipython import get_ipython
45 45 from .core import release
46 46 from .core.application import Application
47 from .frontend.terminal.embed import embed
47 from .terminal.embed import embed
48 48
49 49 from .core.error import TryNext
50 50 from .core.interactiveshell import InteractiveShell
@@ -23,15 +23,10 b' from __future__ import print_function'
23 23 # Stdlib
24 24 import sys
25 25 import types
26 from warnings import warn
26 27
27 m = """\
28 *** WARNING*** : The top-level `frontend` package has been deprecated.
29 All its subpackages have been moved to the top `IPython` level."""
30
31 print(m, file=sys.stderr)
32
33 # FIXME: turn this into a Warning once we've fixed all our own imports.
34 #raise DeprecationWarning(m)
28 warn("The top-level `frontend` package has been deprecated. "
29 "All its subpackages have been moved to the top `IPython` level.")
35 30
36 31 #-----------------------------------------------------------------------------
37 32 # Class declarations
@@ -2,6 +2,6 b''
2 2 """Terminal-based IPython entry point.
3 3 """
4 4
5 from IPython.frontend.terminal.ipapp import launch_new_instance
5 from IPython.terminal.ipapp import launch_new_instance
6 6
7 7 launch_new_instance()
@@ -36,8 +36,8 b' except:'
36 36
37 37 from IPython.core import ultratb, compilerop
38 38 from IPython.core.magic import Magics, magics_class, line_magic
39 from IPython.frontend.terminal.interactiveshell import TerminalInteractiveShell
40 from IPython.frontend.terminal.ipapp import load_default_config
39 from IPython.terminal.interactiveshell import TerminalInteractiveShell
40 from IPython.terminal.ipapp import load_default_config
41 41
42 42 from IPython.utils.traitlets import Bool, CBool, Unicode
43 43 from IPython.utils.io import ask_yes_no
@@ -47,7 +47,7 b' from IPython.core.magics import ScriptMagics'
47 47 from IPython.core.shellapp import (
48 48 InteractiveShellApp, shell_flags, shell_aliases
49 49 )
50 from IPython.frontend.terminal.interactiveshell import TerminalInteractiveShell
50 from IPython.terminal.interactiveshell import TerminalInteractiveShell
51 51 from IPython.utils import warn
52 52 from IPython.utils.path import get_ipython_dir, check_for_old_config
53 53 from IPython.utils.traitlets import (
@@ -223,10 +223,10 b' class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):'
223 223 ]
224 224
225 225 subcommands = Dict(dict(
226 qtconsole=('IPython.frontend.qt.console.qtconsoleapp.IPythonQtConsoleApp',
226 qtconsole=('IPython.qt.console.qtconsoleapp.IPythonQtConsoleApp',
227 227 """Launch the IPython Qt Console."""
228 228 ),
229 notebook=('IPython.frontend.html.notebook.notebookapp.NotebookApp',
229 notebook=('IPython.html.notebook.notebookapp.NotebookApp',
230 230 """Launch the IPython HTML Notebook Server."""
231 231 ),
232 232 profile = ("IPython.core.profileapp.ProfileApp",
@@ -235,10 +235,10 b' class TerminalIPythonApp(BaseIPythonApplication, InteractiveShellApp):'
235 235 kernel = ("IPython.kernel.zmq.kernelapp.IPKernelApp",
236 236 "Start a kernel without an attached frontend."
237 237 ),
238 console=('IPython.frontend.terminal.console.app.ZMQTerminalIPythonApp',
238 console=('IPython.terminal.console.app.ZMQTerminalIPythonApp',
239 239 """Launch the IPython terminal-based Console."""
240 240 ),
241 locate=('IPython.frontend.terminal.ipapp.LocateIPythonApp',
241 locate=('IPython.terminal.ipapp.LocateIPythonApp',
242 242 LocateIPythonApp.description
243 243 ),
244 244 history=('IPython.core.historyapp.HistoryApp',
General Comments 0
You need to be logged in to leave comments. Login now