python - How does IPython's magic %paste work? -
i want copy indented python code / whole functions , classes ipython. everytime try indentation screwed , following error message:
indentationerror: unindent not match outer indentation level (<ipython-input-23-354f8c8be51b>, line 12)
if want paste code ipython, try %paste , %cpaste magic functions.
you can't copy ipython directly. steps:
- copy lines want copy ipython clipboard
- enter
%pasteipython - press enter
- profit!
Comments
Post a Comment