John Kitchin
John Kitchin

Reputation: 2433

How do you get the code in the canopy editor from the ipython console?

Is it possible to get the code in the currently open editor window in the Ipython console? I am interested in running an Ipython magic function that would grab the code in the current window, and send it to a website for analysis, and then show the response in the console. Any ideas?

Upvotes: 0

Views: 131

Answers (1)

Jonathan March
Jonathan March

Reputation: 5810

Not exactly what you are asking for, but maybe the simplest approximation would be to run the ipython magic %history command and copy the output to clipboard.

Upvotes: 1

Related Questions