Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

print name for IPython Notebooks has become uninformative #2227

Closed
tmbdev opened this Issue Aug 1, 2012 · 4 comments

Comments

Projects
None yet
3 participants

tmbdev commented Aug 1, 2012

In versions prior to 0.13, the web page containing a print view would have the notebook name as the title. This meant that when printing the notebook to a PDF printer, the resulting PDF file would have the name of the notebook as the file name.

In version 0.13, the print view has the name "Notebook" regardless of the name of the worksheet.

This is very inconvenient, and I don't see any reason for the change. Could you please change back to using the worksheet name for the title of the print view?

Owner

Carreau commented Aug 1, 2012

hum... I don't see what could have trigged that.
We will investigate.

Owner

Carreau commented Aug 1, 2012

as a workaround, you can execute this:

window.document.title = "IPython Notebook : "+IPython.notebook.get_notebook_name() 

In the javascript console of your browser.

tmbdev commented Aug 4, 2012

Thanks. I have about two hundred notebooks (just counted :-) for lectures right now, though, so the issue isn't one of getting the title up there (I can also do that with PDF), it's really one of being able to print notebooks without too much hassle when I need the. (Maybe I can do something with a JavaScript injection add-on to automate this on at least one machine.)

Owner

Carreau commented Aug 4, 2012

to generate pdf in batch, just use
http://github.com/ipython/nbconvert

if you are on 0.14 dev,
you can overrite any js file by putting it into your/profile/dir/static/js/same_name_as_source.js
cp/past the one from the source and tweek it as you wish.

@minrk minrk closed this in 02bebd7 Aug 31, 2012

fperez added a commit that referenced this issue Aug 31, 2012

Merge pull request #2365 from minrk/nbname
fix names of notebooks for download/save from the browser, so that instead of being called 'notebook' the resulting file has the actual notebook name.

closes #2227

minrk added a commit that referenced this issue Sep 1, 2012

Backport PR #2365: fix names of notebooks for download/save
was using notebook.get('name') instead of notebook.metadata.get('name'),
where the name is actually stored.  The result was that all downloaded notebooks were called 'notebook'.

closes #2227

mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014

fix names of notebooks for download/save
was using notebook.get('name') instead of notebook.metadata.get('name'),
where the name is actually stored.  The result was that all downloaded notebooks were called 'notebook'.

closes #2227

mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014

Merge pull request #2365 from minrk/nbname
fix names of notebooks for download/save from the browser, so that instead of being called 'notebook' the resulting file has the actual notebook name.

closes #2227
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment