Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bbc4d01

Browse files
committed
Add tooltip to Download/Print indicating need to save first
A real fix would be to trigger a save on each of thes actions, which would address ipython#852 closes ipythongh-895
1 parent bae849b commit bbc4d01

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

IPython/frontend/html/notebook/static/js/panelsection.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ var IPython = (function (IPython) {
9494
this.content.find('#download_notebook').button();
9595
this.content.find('#download_notebook').attr('title',
9696
"Download the notebook in the specified format," +
97-
" either full ipynb notebook or as a Python script.");
97+
" either full ipynb notebook or as a Python script." +
98+
" Make sure to save before downloading, to ensure the file is up to date."
99+
);
98100
// upload notebook doesn't exist:
99101
this.content.find('#upload_notebook').button();
100102
this.content.find('#download_format').addClass('ui-widget ui-widget-content');

IPython/frontend/html/notebook/static/js/printwidget.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ var IPython = (function (IPython) {
1414
this.element.find('button#print_notebook').attr('title',
1515
"Open a new window with printer-friendly HTML of the Notebook." +
1616
" Note that this is incomplete, and may not produce perfect" +
17-
" printed output.");
17+
" printed output." +
18+
" Make sure to save before printing, to ensure the output is up to date."
19+
);
1820
};
1921

2022
PrintWidget.prototype.bind_events = function () {

0 commit comments

Comments
 (0)