Show More
@@ -385,20 +385,6 b' IPython ships with automagic on, so you should only rarely need the % escape.' | |||||
385 | Example: typing '%cd mydir' (without the quotes) changes you working directory |
|
385 | Example: typing '%cd mydir' (without the quotes) changes you working directory | |
386 | to 'mydir', if it exists. |
|
386 | to 'mydir', if it exists. | |
387 |
|
387 | |||
388 | You can define your own magic functions to extend the system. See the supplied |
|
|||
389 | ipythonrc and example-magic.py files for details (in your ipython |
|
|||
390 | configuration directory, typically $HOME/.config/ipython on Linux or $HOME/.ipython elsewhere). |
|
|||
391 |
|
||||
392 | You can also define your own aliased names for magic functions. In your |
|
|||
393 | ipythonrc file, placing a line like: |
|
|||
394 |
|
||||
395 | execute __IPYTHON__.magic_pf = __IPYTHON__.magic_profile |
|
|||
396 |
|
||||
397 | will define %pf as a new name for %profile. |
|
|||
398 |
|
||||
399 | You can also call magics in code using the magic() function, which IPython |
|
|||
400 | automatically adds to the builtin namespace. Type 'magic?' for details. |
|
|||
401 |
|
||||
402 | For a list of the available magic functions, use %lsmagic. For a description |
|
388 | For a list of the available magic functions, use %lsmagic. For a description | |
403 | of any of them, type %magic_name?, e.g. '%cd?'. |
|
389 | of any of them, type %magic_name?, e.g. '%cd?'. | |
404 |
|
390 |
General Comments 0
You need to be logged in to leave comments.
Login now