Jak działa magiczny% IPython?

Chcę skopiować już wcięty kod Pythona / całe funkcje i klasy do IPythona. Za każdym razem, gdy próbuję, wcięcie jest spieprzone i pojawia się następujący komunikat o błędzie:

IndentationError: unindent does not match any outer indentation level (<ipython-input-23-354f8c8be51b>, line 12)

If you want to paste code into IPython, try the %paste and %cpaste magic functions.

questionAnswers(6)

yourAnswerToTheQuestion