bundles / IPython 9.17.0 / IPython / lib / demo / Demo / edit
function
IPython.lib.demo:Demo.edit
Signature
def edit(self, index = None)Summary
Edit a block.
Extended Summary
If no number is given, use the last block executed.
This edits the in-memory copy of the demo, it does NOT modify the original source file. If you want to do that, simply open the file in an editor and use reload() when you make changes to the file. This method is meant to let you change a block during a demonstration for explanatory purposes, without damaging your original script.
Aliases
IPython.lib.demo.Demo.edit