<div class="gmail_quote">On 2 September 2011 17:56, Ken Mankoff <span dir="ltr"><<a href="mailto:mankoff@gmail.com">mankoff@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":18r">The kernel doesn't know about qtconsole, but don't magic commands? If I type %guiref it seems to know. So maybe it could be implemented at that level.<br></div></blockquote><div><br>Yes and no. The magic commands run in the kernel like any others. The kernel is currently hardcoded to send back the reference for the Qt console for %guiref. There is a way for the kernel to send instructions back to the frontend (e.g. for exiting, or for launching an external text editor), so it's certainly possible to add an instruction to save html. It's just a bit more complex than it might seem at a glance, and we'd probably want to think about how it would fit in with other frontends, like the new HTML notebook.<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div id=":18r">
Also, you can set up logging, which, combined with replay, could have similar results. You could also combine this with a wrapper above the iPython level at the OS/window manager level (ex AppleScript on OS X) which could automate creating HTML or PDFs from iPython session logs.</div>
</blockquote><div><br>Logging does of course still work, and you can also extract your history from the database. But the inline figures can't easily be recreated after you close the process.<br><br>Thanks,<br>Thomas <br>
</div></div><br>