Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rename %loadpy to %load, keep an alias

As load as drop the .py requirement, renaming it to %load as fperez
suggested in #1110
  • Loading branch information...
commit 870209227f60e7b270c14c5d52cfc21fd7f99a59 1 parent f8b00c0
@Carreau authored
Showing with 16 additions and 4 deletions.
  1. +16 −4 IPython/core/
20 IPython/core/
@@ -2269,12 +2269,24 @@ def magic_pastebin(self, parameter_s = ''):
return response_data['html_url']
def magic_loadpy(self, arg_s):
- """Load a .py python script into the GUI console.
+ """Alias of `%load`
+ `%loadpy` has gain some flexibility and drop the requirement of `.py`
+ extension. So it has been rename simply into %load. You can look at
+ `%load`'s docstring for more info.
+ """
+ self.magic_load(arg_s)
+ def magic_load(self, arg_s):
+ """Load code into the current frontend.
- This magic command can either take a local filename or a url::
+ This magic command can either take a local filename, an url,
+ an history range (see %history) or a macro as argument ::
- %loadpy
- %loadpy
+ %pycat
+ %pycat 7-27
+ %pycat myMacro
+ %pycat
contents =
Please sign in to comment.
Something went wrong with that request. Please try again.