printing from IJulia notebook

466 views
Skip to first unread message

j verzani

unread,
Feb 2, 2014, 11:33:03 AM2/2/14
to julia...@googlegroups.com
Is there an easy way to print an IJulia notebook? I'm using julia in a lab setting and am providing notebooks for students to fill out and turn in. I'd prefer they print them. Unfortunately, I don't see a print menu item and the browser's print feature only prints the visible parts of the page. For the tech savvy I've recommended exporting as an ipynb file, uploading to a public site on dropbox, viewing that through nbviewer and then printing that web page. Definitely tedious. Am I missing something obvious?

John Myles White

unread,
Feb 2, 2014, 11:34:16 AM2/2/14
to julia...@googlegroups.com
Is asking them to print PDF’s using the notebook export tools too onerous?

— John

j verzani

unread,
Feb 2, 2014, 12:14:06 PM2/2/14
to julia...@googlegroups.com
Maybe I'm being dumb, but I can't find that export to pdf feature, just to .py and .ipynb under "File > Download as..."

João Felipe Santos

unread,
Feb 2, 2014, 12:20:40 PM2/2/14
to julia...@googlegroups.com
You have to call it from command line: ipython nbconvert your_notebook.ipynb --to latex --post PDF

--
João Felipe Santos

j verzani

unread,
Feb 2, 2014, 1:24:39 PM2/2/14
to julia...@googlegroups.com
Thanks. I was worried about that. I guess this means I need pandoc and latex installed on the windows machines in our lab to make this work. 

Keno Fischer

unread,
Feb 2, 2014, 1:33:06 PM2/2/14
to julia...@googlegroups.com
Apparently on ipython master, printing directly from the browser should work: https://github.com/ipython/ipython/issues/4196

Matthias BUSSONNIER

unread,
Feb 2, 2014, 1:54:15 PM2/2/14
to julia...@googlegroups.com

Le 2 févr. 2014 à 19:33, Keno Fischer a écrit :

> Apparently on ipython master, printing directly from the browser should work: https://github.com/ipython/ipython/issues/4196


And we are working on Download As ... PDF.
--
M

j verzani

unread,
Feb 4, 2014, 1:28:16 PM2/4/14
to julia...@googlegroups.com
Looking forward to this. In the meantime, as our lab has an older, fixed version of ipython, a colleague found a workaround: select the parts of the notebook that are to be printed and then print the selection. Works with chrome, which is what we have installed in our labs. --J
Reply all
Reply to author
Forward
0 new messages