##// END OF EJS Templates
remove references to loadpy...
Matthias BUSSONNIER -
Show More
@@ -41,7 +41,7 b' class NotebookManager(LoggingConfigurable):'
41 41 save_script = Bool(False, config=True,
42 42 help="""Automatically create a Python script when saving the notebook.
43 43
44 For easier use of import, %run and %loadpy across notebooks, a
44 For easier use of import, %run and %load across notebooks, a
45 45 <notebook-name>.py script will be created next to any
46 46 <notebook-name>.ipynb on each save. This can also be set with the
47 47 short `--script` flag.
@@ -597,7 +597,7 b' class MainWindow(QtGui.QMainWindow):'
597 597
598 598 # list of protected magic that don't like to be called without argument
599 599 # append '?' to the end to print the docstring when called from the menu
600 protected_magic = set(["more","less","load_ext","pycat","loadpy","save"])
600 protected_magic = set(["more","less","load_ext","pycat","loadpy","load","save"])
601 601 magics=re.findall('\w+', listofmagic)
602 602 for magic in magics:
603 603 if magic in protected_magic:
@@ -1014,7 +1014,7 b''
1014 1014 "source": [
1015 1015 "# Loading external codes",
1016 1016 "* Drag and drop a ``.py`` in the dashboard",
1017 "* Use ``%loadpy`` with any local or remote url: [the Matplotlib Gallery!](http://matplotlib.sourceforge.net/gallery.html)",
1017 "* Use ``%load`` with any local or remote url: [the Matplotlib Gallery!](http://matplotlib.sourceforge.net/gallery.html)",
1018 1018 "",
1019 1019 "In this notebook we've kept the output saved so you can see the result, but you should run the next",
1020 1020 "cell yourself (with an active internet connection)."
@@ -1024,7 +1024,7 b''
1024 1024 "cell_type": "code",
1025 1025 "collapsed": true,
1026 1026 "input": [
1027 "%loadpy http://matplotlib.sourceforge.net/mpl_examples/pylab_examples/integral_demo.py"
1027 "%load http://matplotlib.sourceforge.net/mpl_examples/pylab_examples/integral_demo.py"
1028 1028 ],
1029 1029 "language": "python",
1030 1030 "outputs": [],
@@ -1,7 +1,7 b''
1 1 """
2 2 Run this script in the qtconsole with one of:
3 3
4 %loadpy hb_gil.py
4 %load hb_gil.py
5 5
6 6 or
7 7 %run hb_gil.py
@@ -33,18 +33,18 b' is not yet configurable.'
33 33 point in a multiline block, you can force its execution (without having to
34 34 go to the bottom) with :kbd:`Shift-Enter`.
35 35
36 ``%loadpy``
37 ===========
36 ``%load``
37 =========
38 38
39 The new ``%loadpy`` magic takes any python script (must end in '.py'), and
40 pastes its contents as your next input, so you can edit it before
41 executing. The script may be on your machine, but you can also specify a url,
42 and it will download the script from the web. This is particularly useful for
43 playing with examples from documentation, such as matplotlib.
39 The new ``%load`` magic (previously ``%loadpy``) takes any script, and pastes
40 its contents as your next input, so you can edit it before executing. The
41 script may be on your machine, but you can also specify an history range, or a
42 url, and it will download the script from the web. This is particularly useful
43 for playing with examples from documentation, such as matplotlib.
44 44
45 45 .. sourcecode:: ipython
46 46
47 In [6]: %loadpy http://matplotlib.sourceforge.net/plot_directive/mpl_examples/mplot3d/contour3d_demo.py
47 In [6]: %load http://matplotlib.sourceforge.net/plot_directive/mpl_examples/mplot3d/contour3d_demo.py
48 48
49 49 In [7]: from mpl_toolkits.mplot3d import axes3d
50 50 ...: import matplotlib.pyplot as plt
General Comments 0
You need to be logged in to leave comments. Login now