Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use IPython magic commands within the Spyder editor?

I'm using Spyder as my IDE, and I'd like to know if I can use IPython magic (e.g. %reset) within the text editor and have it interpreted correctly within my IPython client.

Currently I get syntax errors (it's not wrong) but I was wondering if there was a way to write the magic in a way that a normal python interpreter would ignore it (like #%reset or something).

like image 367
trianta2 Avatar asked Nov 10 '22 17:11

trianta2


1 Answers

i think you can try to add this code import IPython IPython.start_ipython() and see this link--cant-get-ipython-console-in-spyder

like image 159
brian tse Avatar answered Nov 14 '22 23:11

brian tse