Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I assume you are looking for something similar to how BASIC used to work (boot up to a BASIC prompt and start coding).</p> <p><a href="http://ipython.scipy.org/moin/" rel="nofollow noreferrer">IPython</a> allows you to do this quite intuitively. Unix shells such as Bash use the same concept, but you cannot re-use and save your work nearly as intuitively as with IPython. Python is also a far better general-purpose language.</p> <p><strong>Edit:</strong> I was going to type up some examples and provide some links, but the <a href="http://ipython.scipy.org/doc/stable/html/interactive/tutorial.html" rel="nofollow noreferrer">IPython interactive tutorial</a> seems to do this a lot better than I could. Good starting points for what you are looking for are the sections on <a href="http://ipython.scipy.org/doc/stable/html/interactive/tutorial.html#source-code-handling-tips" rel="nofollow noreferrer">source code handling tips</a> and <a href="http://ipython.scipy.org/doc/stable/html/interactive/tutorial.html#lightweight-version-control" rel="nofollow noreferrer">lightweight version control</a>. Note this tutorial doesn't spell out how to do everything you are looking for precisely, but it does provide a jumping off point to understand the interactive features on the IPython shell.</p> <p>Also take a look at the <a href="http://ipython.scipy.org/doc/stable/html/interactive/reference.html#magic" rel="nofollow noreferrer">IPython "magic" reference</a>, as it provides a lot of utilities that do things specific to what you want to do, and allows you to easily define your own. This is very "meta", but the example that shows how to create an IPython magic function is probably the most concise example of a "complete application" built in IPython.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload