<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8370777655876658862</id><updated>2011-07-08T16:11:00.417+03:00</updated><category term='matplotlib'/><category term='sympy'/><category term='math'/><category term='lasem'/><category term='reinteract'/><title type='text'>Jorn Baayen</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jbaayen.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370777655876658862/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://jbaayen.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jorn Baayen</name><uri>http://www.blogger.com/profile/08581568716339183804</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8370777655876658862.post-5679381381945951766</id><published>2009-11-06T21:47:00.003+02:00</published><updated>2009-11-06T21:54:54.351+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sympy'/><category scheme='http://www.blogger.com/atom/ns#' term='reinteract'/><category scheme='http://www.blogger.com/atom/ns#' term='matplotlib'/><category scheme='http://www.blogger.com/atom/ns#' term='math'/><title type='text'>3D plots in Reinteract</title><content type='html'>Using matplotlib's awesome &lt;span style="font-family:courier new;"&gt;mplot3d&lt;/span&gt; toolkit. Note that this all uses cairo and so will print nicely.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_thVnZ65RiB0/SvR-zIM-EPI/AAAAAAAAABk/Q0Vt_TC25_Q/s1600-h/mplot3d.png"&gt;&lt;img style="cursor: pointer; width: 312px; height: 400px;" src="http://1.bp.blogspot.com/_thVnZ65RiB0/SvR-zIM-EPI/AAAAAAAAABk/Q0Vt_TC25_Q/s400/mplot3d.png" alt="" id="BLOGGER_PHOTO_ID_5401081269964378354" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370777655876658862-5679381381945951766?l=jbaayen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jbaayen.blogspot.com/feeds/5679381381945951766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8370777655876658862&amp;postID=5679381381945951766' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370777655876658862/posts/default/5679381381945951766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370777655876658862/posts/default/5679381381945951766'/><link rel='alternate' type='text/html' href='http://jbaayen.blogspot.com/2009/11/3d-plots-in-reinteract.html' title='3D plots in Reinteract'/><author><name>Jorn Baayen</name><uri>http://www.blogger.com/profile/08581568716339183804</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_thVnZ65RiB0/SvR-zIM-EPI/AAAAAAAAABk/Q0Vt_TC25_Q/s72-c/mplot3d.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370777655876658862.post-1365142882570989543</id><published>2009-10-13T23:35:00.004+03:00</published><updated>2009-10-13T23:48:28.554+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sympy'/><category scheme='http://www.blogger.com/atom/ns#' term='reinteract'/><category scheme='http://www.blogger.com/atom/ns#' term='lasem'/><category scheme='http://www.blogger.com/atom/ns#' term='math'/><title type='text'>Progress</title><content type='html'>What's new since my last post? Well, I did write &lt;a href="http://github.com/jbaayen/pylasem"&gt;Python bindings&lt;/a&gt; for &lt;a href="http://git.gnome.org/cgit/lasem/"&gt;Lasem&lt;/a&gt;. Note that Lasem from git master is needed for pylasem to work (many thanks to Emmanuel Pacaud for being quick to review my patches).&lt;br /&gt;&lt;br /&gt;I've also more or less finished up the &lt;a href="http://github.com/jbaayen/reinteract/blob/sympy/lib/resympy.py"&gt;sympy module for Reinteract&lt;/a&gt; (kudos to Robert Schroll for helpful suggestions and code). A release is pending on feedback from the Reinteract maintainer on how to implement the actual integration best.&lt;br /&gt;&lt;br /&gt;Another little hack in my &lt;a href="http://github.com/jbaayen/reinteract"&gt;Reinteract branch &lt;/a&gt;is support for printing worksheets using GtkPrint.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370777655876658862-1365142882570989543?l=jbaayen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jbaayen.blogspot.com/feeds/1365142882570989543/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8370777655876658862&amp;postID=1365142882570989543' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370777655876658862/posts/default/1365142882570989543'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370777655876658862/posts/default/1365142882570989543'/><link rel='alternate' type='text/html' href='http://jbaayen.blogspot.com/2009/10/sympy-reinteract-integration.html' title='Progress'/><author><name>Jorn Baayen</name><uri>http://www.blogger.com/profile/08581568716339183804</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370777655876658862.post-830976044108866289</id><published>2009-10-03T02:17:00.007+03:00</published><updated>2009-10-04T00:25:37.113+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sympy'/><category scheme='http://www.blogger.com/atom/ns#' term='reinteract'/><category scheme='http://www.blogger.com/atom/ns#' term='lasem'/><category scheme='http://www.blogger.com/atom/ns#' term='math'/><title type='text'>SymPy + Reinteract + Lasem = ♛</title><content type='html'>&lt;a href="http://git.gnome.org/cgit/lasem/"&gt;Lasem&lt;/a&gt; is an SVG and MathML rendering library that also handles itex. What is really cool about it is that it uses cairo. This means that we need no more calls to &lt;span style="font-family:courier new;"&gt;dvipng&lt;/span&gt; when rendering sympy output! It is also fast and handles matrices:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_thVnZ65RiB0/SsaPJhCIxGI/AAAAAAAAABc/0CYIVUTYlZo/s1600-h/reinteract-sympy-lasem.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 237px;" src="http://3.bp.blogspot.com/_thVnZ65RiB0/SsaPJhCIxGI/AAAAAAAAABc/0CYIVUTYlZo/s400/reinteract-sympy-lasem.png" alt="" id="BLOGGER_PHOTO_ID_5388151397844304994" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The second prize in coolness goes to the &lt;a href="http://code.google.com/p/mathtex/"&gt;mathtex&lt;/a&gt; project, which allows one to render latex using straight python and cairo.&lt;br /&gt;&lt;br /&gt;I have code integrating both mathtex and lasem into sympy + reinteract.&lt;span style="text-decoration: underline;"&gt; &lt;/span&gt;Neither is ready enough to be released at this point, but soon they will be. Stay tuned!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370777655876658862-830976044108866289?l=jbaayen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jbaayen.blogspot.com/feeds/830976044108866289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8370777655876658862&amp;postID=830976044108866289' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370777655876658862/posts/default/830976044108866289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370777655876658862/posts/default/830976044108866289'/><link rel='alternate' type='text/html' href='http://jbaayen.blogspot.com/2009/10/sympy-reinteract-lasem.html' title='SymPy + Reinteract + Lasem = ♛'/><author><name>Jorn Baayen</name><uri>http://www.blogger.com/profile/08581568716339183804</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_thVnZ65RiB0/SsaPJhCIxGI/AAAAAAAAABc/0CYIVUTYlZo/s72-c/reinteract-sympy-lasem.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8370777655876658862.post-6420888829546089275</id><published>2009-09-29T23:31:00.011+03:00</published><updated>2009-09-30T19:04:48.061+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sympy'/><category scheme='http://www.blogger.com/atom/ns#' term='reinteract'/><category scheme='http://www.blogger.com/atom/ns#' term='math'/><title type='text'>SymPy + Reinteract = ♥</title><content type='html'>Part of what makes &lt;a href="http://www.sympy.org/"&gt;SymPy&lt;/a&gt; so useful is the fact that it can readily be combined with any other Python software. Nevertheless I sometimes find myself wishing for a better interactive shell, where one can go back and edit previous statements. &lt;a href="http://www.reinteract.org/"&gt;Reinteract&lt;/a&gt; is the obvious candidate and the only thing that kept me back was its lack of support for SymPy's "pretty printing". Now I've just found a bit of time to combine the two:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_thVnZ65RiB0/SsJ0ckYBC5I/AAAAAAAAABE/DfGoMANklsU/s1600-h/reinteract-sympy-latex.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 131px;" src="http://4.bp.blogspot.com/_thVnZ65RiB0/SsJ0ckYBC5I/AAAAAAAAABE/DfGoMANklsU/s400/reinteract-sympy-latex.png" alt="" id="BLOGGER_PHOTO_ID_5386996138438101906" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The drawback of using LaTeX is that for every formula an external program has to be invoked. This can become slow for large worksheets, and so I've experimented with embedding &lt;a href="http://helm.cs.unibo.it/mml-widget/"&gt;GtkMathView&lt;/a&gt; as well. GtkMathView currently breaks when scrolling the Reinteract text view, but I'm sure this can be fixed. Otherwise it works well enough for a screenshot:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_thVnZ65RiB0/SsJ0dLyeQgI/AAAAAAAAABM/e4J8RSqZbZo/s1600-h/reinteract-sympy-gtkmathview.png"&gt;&lt;img style="cursor: pointer; width: 400px; height: 166px;" src="http://3.bp.blogspot.com/_thVnZ65RiB0/SsJ0dLyeQgI/AAAAAAAAABM/e4J8RSqZbZo/s400/reinteract-sympy-gtkmathview.png" alt="" id="BLOGGER_PHOTO_ID_5386996149018051074" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Both are quite horrible hacks currently but I promise to polish. Thus far I offer (incomplete) &lt;a href="http://github.com/jbaayen/pygtkmathview"&gt;Python bindings for GtkMathView&lt;/a&gt; and a &lt;a href="http://github.com/jbaayen/reinteract/tree/sympy"&gt;Reinteract branch&lt;/a&gt;. The LaTeX formatter makes use of &lt;a href="http://code.google.com/p/latexmath2png/"&gt;latexmath2png.py&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8370777655876658862-6420888829546089275?l=jbaayen.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jbaayen.blogspot.com/feeds/6420888829546089275/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8370777655876658862&amp;postID=6420888829546089275' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8370777655876658862/posts/default/6420888829546089275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8370777655876658862/posts/default/6420888829546089275'/><link rel='alternate' type='text/html' href='http://jbaayen.blogspot.com/2009/09/part-of-what-makes-sympy-so-useful-is.html' title='SymPy + Reinteract = ♥'/><author><name>Jorn Baayen</name><uri>http://www.blogger.com/profile/08581568716339183804</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_thVnZ65RiB0/SsJ0ckYBC5I/AAAAAAAAABE/DfGoMANklsU/s72-c/reinteract-sympy-latex.png' height='72' width='72'/><thr:total>3</thr:total></entry></feed>
