Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

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 · Fixed by #2365
Closed

print name for IPython Notebooks has become uninformative #2227

tmbdev opened this issue Aug 1, 2012 · 4 comments · Fixed by #2365

Comments

@tmbdev
Copy link

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?

@Carreau
Copy link
Member

Carreau commented Aug 1, 2012

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

@Carreau
Copy link
Member

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
Copy link
Author

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.)

@Carreau
Copy link
Member

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 as completed in 02bebd7 Aug 31, 2012
fperez added a commit that referenced this issue Aug 31, 2012
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
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
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 ipython#2227
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
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 ipython#2227
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants