Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to save a Python interactive session?
    primarykey
    data
    text
    <p>I find myself frequently using Python's interpreter to work with databases, files, etc -- basically a lot of manual formatting of semi-structured data. I don't properly save and clean up the useful bits as often as I would like. Is there a way to save my input into the shell (db connections, variable assignments, little for loops and bits of logic) -- some history of the interactive session? If I use something like <code>script</code> I get too much stdout noise. I don't really need to pickle all the objects -- though if there is a solution that does that, it would be OK. Ideally I would just be left with a script that ran as the one I created interactively, and I could just delete the bits I didn't need. Is there a package that does this, or a DIY approach?</p> <p><b>UPDATE</b>: I am really amazed at the quality and usefulness of these packages. For those with a similar itch:</p> <ul> <li>IPython -- should have been using this for ages, kind of what I had in mind</li> <li><a href="http://blog.fishsoup.net/category/coding/reinteract/" rel="noreferrer">reinteract</a> -- very impressive, I want to learn more about visualization and this seems like it will shine there. Sort of a gtk/gnome desktop app that renders graphs inline. Imagine a hybrid shell + graphing calculator + mini eclipse. Source distribution here: <a href="http://www.reinteract.org/trac/wiki/GettingIt" rel="noreferrer">http://www.reinteract.org/trac/wiki/GettingIt</a> . Built fine on Ubuntu, integrates into gnome desktop, Windows and Mac installers too.</li> <li><a href="http://bpython-interpreter.org/" rel="noreferrer">bpython</a> -- extremely cool, lots of nice features, autocomplete(!), rewind, one keystroke save to file, indentation, well done. Python source distribution, pulled a couple of dependencies from sourceforge.</li> </ul> <p>I am converted, these really fill a need between interpreter and editor.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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