<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>Le 29 janv. 2015 à 18:28, Jean Bigboute <<a href="mailto:jeanbigboute@gmail.com">jeanbigboute@gmail.com</a>> a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div><div><div>1) I often go back and forth in cells, tweaking functions.  I'd like to be able to show the current code for a function in a cell (not the pager) when I'm not sure which function definition I last executed<br><br></div><br></div>%psource function<br></div>works nicely but the result goes in the pager, not the cell.<br><br></div><div>These two options work but require remembering things which gets tricky when I use different computers:<br><br>import inspect<br>print inspect.getsource(function)<br></div><div><br></div><div>and the pager redefinition shown in<br><a href="http://nbviewer.ipython.org/gist/minrk/7715212">http://nbviewer.ipython.org/gist/minrk/7715212</a> has a fix which requires imports<br><br></div><div>I am sure there must be a way to do this and I just haven't searched on the correct terms...<br></div></div></blockquote><div><br></div><div>In IPython master there is an option to redirect all pager things to output. </div><div>The plan it to make output detachable. </div><div><br></div><div>try --InteractiveShell.display_page=True</div><div><br></div><div>see PR 7009. </div><div><br></div><div><br></div><blockquote type="cite"><div dir="ltr"><div>2) Is it possible to paste images from the clipboard buffer into a cell without first creating a separate image file and then linking to that file?<br></div></div></blockquote><div><br></div><div>No, </div><div><br></div><div>I would suggest looking at <a href="http://github.com/IPython-contrib">github.com/IPython-contrib</a> for an extension to do that. </div><div>There are some complication to do that though, in particular when "uploading" do you want to upload</div><div>to server or kernel ? </div><div><br></div><div>Now that we have content API it should be easier to implement if it is not yet done. </div><div>-- </div><div>M</div><br><blockquote type="cite"><div dir="ltr"><div><br></div><div>Thanks,<br><br></div><div>JBB<br></div></div>
_______________________________________________<br>IPython-dev mailing list<br><a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>http://mail.scipy.org/mailman/listinfo/ipython-dev<br></blockquote></div><br></body></html>