Show More
@@ -1,7 +1,7 b'' | |||
|
1 | 1 | # -*- coding: utf-8 -*- |
|
2 | 2 | """Magic functions for InteractiveShell. |
|
3 | 3 | |
|
4 |
$Id: Magic.py 96 |
|
|
4 | $Id: Magic.py 969 2005-12-29 17:18:31Z fperez $""" | |
|
5 | 5 | |
|
6 | 6 | #***************************************************************************** |
|
7 | 7 | # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and |
@@ -2527,17 +2527,17 b' Defaulting color scheme to \'NoColor\'"""' | |||
|
2527 | 2527 | self.shell.jobs.new(parameter_s,self.shell.user_ns) |
|
2528 | 2528 | |
|
2529 | 2529 | def magic_store(self, parameter_s=''): |
|
2530 |
"""Lightweight persistence for |
|
|
2530 | """Lightweight persistence for python variables. | |
|
2531 | 2531 | |
|
2532 | 2532 | Example: |
|
2533 | 2533 | |
|
2534 | ville@badger[~]|1> A = ['hello',10,'world'] | |
|
2535 | ville@badger[~]|2> %store A | |
|
2534 | ville@badger[~]|1> A = ['hello',10,'world']\\ | |
|
2535 | ville@badger[~]|2> %store A\\ | |
|
2536 | 2536 | ville@badger[~]|3> Exit |
|
2537 | 2537 | |
|
2538 | 2538 | (IPython session is closed and started again...) |
|
2539 | 2539 | |
|
2540 | ville@badger:~$ ipython -p pysh | |
|
2540 | ville@badger:~$ ipython -p pysh\\ | |
|
2541 | 2541 | ville@badger[~]|1> print A |
|
2542 | 2542 | |
|
2543 | 2543 | ['hello', 10, 'world'] |
General Comments 0
You need to be logged in to leave comments.
Login now