2
0
mirror of https://github.com/jupyter/notebook.git synced 2025-01-24 12:05:22 +08:00
Commit Graph

1933 Commits

Author SHA1 Message Date
MinRK
8b5e5a5e09 restore checkpoints in a sub-list
minor styling update to the restore dialog as well
2013-05-01 17:34:23 -07:00
MinRK
c1b19755fd rename shouldn't create a checkpoint 2013-05-01 17:32:47 -07:00
MinRK
46093157d7 deleting a notebook deletes its checkpoints
also cleanup a few log messages
2013-05-01 17:32:47 -07:00
MinRK
a3c99d94bb add checkpoint status to notebook header
autosave is also there, but once the dirty flag is an event,
this should stop having the date, and just become 'autosaved / unsaved changes'
2013-05-01 17:32:46 -07:00
MinRK
030c547e58 fix Location headers 2013-05-01 17:32:46 -07:00
MinRK
c8605cd83a ignore checkpoints 2013-05-01 17:32:45 -07:00
MinRK
1f82c03dd2 Save and Checkpoint 2013-05-01 17:32:45 -07:00
MinRK
53ac962d1a sync with previous handler changes
use IPythonHandler, avoid self.application
2013-05-01 17:32:45 -07:00
MinRK
a99a07f10b only save on close if autosaving 2013-05-01 17:32:44 -07:00
MinRK
01bba482a9 *all* user-initiated saves create a checkpoint 2013-05-01 17:32:44 -07:00
MinRK
8ca57a1779 s/autosave_notebook/set_autosave_interval/ 2013-05-01 17:32:43 -07:00
MinRK
80bba145d5 set default autosave interval to two minutes 2013-05-01 17:32:43 -07:00
MinRK
2fe8a9b2cd only autosave when dirty 2013-05-01 17:32:43 -07:00
MinRK
dd77790a00 add autosave timer
autosave interval is tuned based on the duration of saves.
Autosave will never happen more frequently than every 30 seconds,
and if saves take more than 3 seconds, autosave will fire every 10x the duration of the save (i.e. if save takes 6 seconds, it will be every 60 seconds, etc.)
2013-05-01 17:32:42 -07:00
MinRK
6da01bf362 trigger autosave on tab/window close
instead of "please don't leave!"
2013-05-01 17:32:42 -07:00
MinRK
e119a6469b add Revert to the menu bar 2013-05-01 17:32:42 -07:00
MinRK
5bc55ba984 add some checkpoint messages to the notification area 2013-05-01 17:32:41 -07:00
MinRK
db413fadbf expose notebook checkpoints in html/js
- cmd-S does a plain save
- ^M-s does checkpoint
- add save checkpoint to File menu
- save button in bar does checkpoint
2013-05-01 17:32:41 -07:00
MinRK
985289e113 checkpoint info is a dict
two keys: checkpoint_id and last_modified
2013-05-01 17:32:41 -07:00
MinRK
dd234bbc93 add ModifyCheckpoints handler
separates requests that change specified checkpoint IDs from those that do not.
2013-05-01 17:32:39 -07:00
MinRK
62d61cbbc0 add notebook checkpoint handler 2013-05-01 17:31:23 -07:00
MinRK
c4ac8eee36 add checkpoint API to FileNBManager 2013-05-01 17:29:46 -07:00
Min RK
6be220da56 Merge pull request from ellisonbg/removeprint
Remove the unused print notebook view
2013-04-30 20:12:42 -07:00
Brian E. Granger
56e4759813 Merge pull request from ellisonbg/tabstyle
Improve the design of the tab completion UI
2013-04-30 20:06:01 -07:00
Brian E. Granger
5cc0897dd6 Fixing styling of context type completions. 2013-04-30 19:44:23 -07:00
MinRK
6e32ee5546 ensure submodules exist prior to doing anything
git submodule update fires before distutils gets fired up
because distutils cannot be trusted.
2013-04-30 16:18:52 -07:00
Erik Tollerud
180f465f16 Collapse -> Close in button description as suggested by @fperez 2013-04-29 20:52:40 -03:00
MinRK
1390270968 use components from external submodule 2013-04-29 16:20:07 -07:00
Erik Tollerud
13b2cadd8b changed ESC to trigger collapsing of the pager in notebook 2013-04-29 19:16:06 -04:00
Erik Tollerud
aafec25d34 Added clickable icon to collapse pager
Closes 
2013-04-29 19:15:52 -04:00
MinRK
09adbd4e32 remove components 2013-04-29 16:13:48 -07:00
Brian E. Granger
d9668cdb78 Merge pull request from minrk/image_size
allow formatters to specify metadata
2013-04-29 15:13:08 -07:00
Min RK
8f2442661f Merge pull request from ellisonbg/removegrow
Removing old autogrow JS code.

it is no longer necessary
2013-04-29 14:15:39 -07:00
Brian E. Granger
e149319692 Removing print notebook from style.less. 2013-04-29 14:13:53 -07:00
Brian E. Granger
1494b484b6 Removing print handler and URL regepx. 2013-04-29 14:13:53 -07:00
Brian E. Granger
a2c8215947 Removing print handler. 2013-04-29 14:13:53 -07:00
Brian E. Granger
51a897d87c Removing stale call to print view in JS. 2013-04-29 14:13:53 -07:00
Brian E. Granger
abaafd2363 Removing old autogrow JS code. 2013-04-29 14:13:05 -07:00
Brian E. Granger
93f5f67d37 Updating box-shadows to proper bootstrap less function. 2013-04-29 14:05:35 -07:00
Brian E. Granger
49faf2c939 Improving the tab completion UI/design 2013-04-29 13:59:53 -07:00
MinRK
034331c3fa support display_pub metadata in js frontend 2013-04-29 11:27:46 -07:00
Min RK
f04e1d8707 Merge pull request from ellisonbg/codemirror3
Update to CodeMirror 3 and start to ship our components

The main purpose of this branch is the update to CodeMirror 3 and ship it as a bower component. Because CodeMirror doesn't use proper semantic version tags, we have created a CodeMirror ipython fork. The sole purpose of this fork is for us to maintain properly named tags that bower can install from.

As a side effect of these changes, we are now shipping in place all bower components that we are using (bootstrap, less. codemirror, jquery). BUT, the version of jquery in components is not yet being used as we are still stuck with the old version attached to the nasty jquery.ui branch we ship. In a later PR, we will need to get rid of that jquery.ui branch (replace those capabilties with bootstrap) and then move to a stable version of jquery.ui that matches that of the jquery component depended upon by bootstrap.
2013-04-29 11:02:52 -07:00
Brian E. Granger
e77e2fe409 Fixing indentation in fabfile.py. 2013-04-29 08:53:38 -07:00
Brian E. Granger
3e08874316 Adding README.md about notebook development. 2013-04-28 21:16:25 -07:00
Brian E. Granger
bdf1cefac5 Put back the components fab function as we can still use it. 2013-04-28 21:09:32 -07:00
Brian E. Granger
8dbc143512 Fix CM related sizing issues for completer and tooltip. 2013-04-27 23:48:37 -07:00
Brian E. Granger
9d2da9e28f Removing old codemirror assets - we now use the 1 in components. 2013-04-27 23:21:57 -07:00
Brian E. Granger
c83c0449d5 Fixing CM3 style related issues.
CM3 introduced a number of changes to how various paddings are set.
Because of how we change the line-height we had to set these back
to the CM2 values. What a pain!
2013-04-27 23:18:24 -07:00
Brian E. Granger
40617eb340 Give the .CodeMirror class no background so ours shows through. 2013-04-27 22:59:53 -07:00
Brian E. Granger
68dd1370ac Fixing broken URLs to CM assets. 2013-04-27 22:32:24 -07:00