Show More
@@ -19,6 +19,7 b' import os' | |||
|
19 | 19 | # Our own packages |
|
20 | 20 | from IPython.core.error import UsageError |
|
21 | 21 | from IPython.core.magic import Magics, magics_class, line_magic |
|
22 | from warnings import warn | |
|
22 | 23 | |
|
23 | 24 | #----------------------------------------------------------------------------- |
|
24 | 25 | # Magic implementation classes |
@@ -42,6 +43,8 b' class ExtensionMagics(Magics):' | |||
|
42 | 43 | -n filename : Specify a name for the file, rather than taking it from |
|
43 | 44 | the URL. |
|
44 | 45 | """ |
|
46 | warn("%install_ext` is deprecated, please distribute your extension(s)" | |
|
47 | "as a python packages.", UserWarning) | |
|
45 | 48 | opts, args = self.parse_options(parameter_s, 'n:') |
|
46 | 49 | try: |
|
47 | 50 | filename = self.shell.extension_manager.install_extension(args, |
@@ -19,9 +19,6 b' the `Framework :: IPython tag <https://pypi.python.org/pypi?:action=browse&c=586' | |||
|
19 | 19 | on PyPI. |
|
20 | 20 | |
|
21 | 21 | Extensions on PyPI can be installed using ``pip``, like any other Python package. |
|
22 | Other simple extensions can be installed with the ``%install_ext`` magic. The | |
|
23 | latter does no validation, so be careful using it on untrusted networks like | |
|
24 | public wifi. | |
|
25 | 22 | |
|
26 | 23 | Using extensions |
|
27 | 24 | ================ |
General Comments 0
You need to be logged in to leave comments.
Login now