Commit Graph

1820 Commits

Author SHA1 Message Date
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 #3235 from ellisonbg/removeprint
Remove the unused print notebook view
2013-04-30 20:12:42 -07:00
Brian E. Granger
56e4759813 Merge pull request #3238 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
Brian E. Granger
d9668cdb78 Merge pull request #3190 from minrk/image_size
allow formatters to specify metadata
2013-04-29 15:13:08 -07:00
Min RK
8f2442661f Merge pull request #3234 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 #3232 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
Brian E. Granger
29a1296ef6 Changing mode name from python -> ipython. 2013-04-27 22:21:13 -07:00
Brian E. Granger
137a40ac96 Fixing typo in ntoebook.html. 2013-04-27 22:18:22 -07:00
Brian E. Granger
222a4f61df Updating ipython CM mode. 2013-04-27 22:17:58 -07:00
Brian E. Granger
ea4eb9b351 Copying CodeMirror's python mode into place for our ipython mode. 2013-04-27 22:14:54 -07:00
Brian E. Granger
d2460ee0c5 Add components to static URLs. 2013-04-27 22:03:34 -07:00
Brian E. Granger
72d7b6ff39 Updating tooltip.less for CM3 behavior. 2013-04-27 22:01:44 -07:00
Brian E. Granger
6e08dc37fa In CM3, the class that needs autogrow has changed. 2013-04-27 22:00:21 -07:00
Brian E. Granger
c666acbe5e Updating tooltip.js to work with CM3. 2013-04-27 21:55:11 -07:00
Brian E. Granger
ed8d859d66 Updating path to codemirror. 2013-04-27 21:53:37 -07:00
Brian E. Granger
85908b1765 Moving cmtemp -> codemirror. 2013-04-27 21:50:57 -07:00
Brian E. Granger
154df41ac3 Moving CodeMirror -> cmtemp 2013-04-27 21:50:34 -07:00
Brian E. Granger
a36d867882 Removing tests from fabfile that are no longer needed. 2013-04-27 17:53:41 -07:00
Brian E. Granger
836f68e4ad Adding our current components directory.
This commit adds the right versions of:

* Bootstrap
* Jquery
* less.js
* CodeMirror

We should always use bower to manage these packages in the
future. BUT, we are not yet using this version of jquery as
we still rely on an older crazy-branch version of jquery.ui.
2013-04-27 17:42:38 -07:00