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:

  1. copy lines want copy ipython clipboard
  2. enter %paste ipython
  3. press enter
  4. profit!

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -