Takafumi Arakaki
4aa2bca46c
Fix: "python ABS/PATH/TO/ipython.py" fails
...
The following line in setupbase.py was the problem. It assumes
that your CWD is always at the repository root. This patch removes
this assumption.
execfile(pjoin('IPython','core','release.py'), globals())
2013-05-10 23:30:26 +02:00
Jonathan Frederic
09099ce3c5
Names reduced, too redundent.
2013-05-10 13:17:52 -07:00
Brian E. Granger
fa872236a2
Merge pull request #3275 from minrk/submodule-hooks
...
improve submodule messages / git hooks
2013-05-09 15:51:43 -07:00
Brian E. Granger
a861725303
Merge pull request #3239 from eteq/easy-close-pager
...
Allow "x" icon and esc key to close pager in notebook
2013-05-09 15:47:28 -07:00
Matthias BUSSONNIER
40b760d836
fix callbacks as optional in js kernel.execute
...
plus some doc fixes.
Mainly to fix some backward compatibility with examples here and there.
2013-05-09 14:02:07 +02:00
Jonathan Frederic
8af3a89173
Finished a rough draft of the exporters.
2013-05-06 22:41:38 -07:00
Erik Tollerud
c2e199abb8
use alternate method to collapse pager from notebook.js as suggested by @Carreau
2013-05-06 19:12:08 -04:00
Thomas Weißschuh
44f5fd3d87
notebookapp: add missing whitespace to warnings
2013-05-04 12:04:16 +00:00
MinRK
9b22138a9b
use highlevel in notebook log format
...
datefmt no longer necessary
2013-05-03 17:04:32 -07:00
MinRK
19c6442a7d
check submodules when starting the notebook server
...
shows a warning (not an error) if components are out of date.
2013-05-03 15:44:05 -07:00
MinRK
cba52f17e5
use utils/submodule in setup.py
...
`setup.py anything` will halt with an informative error
if the submodules are unclean.
It will fetch the submodules if they are entirely absent.
Nothing will happen if it is not a git repo.
2013-05-03 15:42:10 -07:00
MinRK
677cdd33f2
add git hooks for submodules
...
A much less intrusive version of #3274 that has effect on checkout / pull / merge,
rather than setup.py. It does require a user install step,
because you cannot add active hooks to a repo.
2013-05-03 13:08:54 -07:00
Min RK
331326a27b
Merge pull request #3269 from minrk/babel
...
protect highlight.js against unknown languages
2013-05-03 11:47:03 -07:00
MinRK
4b5ba71307
protect highlight.js against unknown languages
...
falls back on autodetect if specified language fails (e.g. unrecognized language).
closes #3268
2013-05-02 23:59:39 -07:00
Matthias Bussonnier
6d4e7d2fde
Merge pull request #3267 from minrk/forreals
...
add missing return
2013-05-02 23:47:22 -07:00
MinRK
7782dfcb4e
add missing return
...
closes #3260 (again)
2013-05-02 23:43:58 -07:00
Brian E. Granger
d3da03069d
Merge pull request #3101 from minrk/marked
...
use marked / highlight.js instead of pagedown and prettify
2013-05-02 15:49:50 -07:00
MinRK
8df01f22aa
finish removing prettify
2013-05-02 15:26:30 -07:00
MinRK
796fb5d0a8
unify highlight.js / codemirror style
2013-05-02 12:24:37 -07:00
MinRK
6ac2bdf086
use highlight.js to highlight markdown code blocks
2013-05-02 12:24:36 -07:00
MinRK
b6c390db06
use marked for markdown
2013-05-02 12:24:26 -07:00
Brian E. Granger
32c0f7abf9
Merge pull request #3263 from minrk/nocp
...
fix set_last_checkpoint when no checkpoint
2013-05-02 10:01:47 -07:00
MinRK
70dd6e1612
fix set_last_checkpoint when no checkpoint
...
closes #3260
2013-05-02 08:58:59 -07:00
Min RK
c7e0f2acd6
Merge pull request #3258 from takluyver/i3257
...
Fix submodule location in setup.py
2013-05-02 08:55:38 -07:00
Thomas Kluyver
405e434d45
Fix for checking submodules location
...
Closes gh-3257
2013-05-02 13:47:18 +01:00
Brian E. Granger
3d07b3ddfb
Merge pull request #3254 from minrk/fixurls
...
fix a few URLs from previous PR
2013-05-01 21:34:05 -07:00
MinRK
e1f4d0a85f
fix a few URLs from previous PR
...
some of the URLs in the submodules PR were not updated
2013-05-01 21:30:27 -07:00
Brian E. Granger
4a654d1c29
Merge pull request #3240 from minrk/submodules
...
remove js components from the repo
2013-05-01 21:10:30 -07:00
MinRK
2cf93510f8
use less from components
2013-05-01 18:24:23 -07:00
MinRK
317debce06
remove unused components
...
remove command from fabfile
components live in a submodule
2013-05-01 18:19:36 -07:00
Fernando Perez
10062c346f
Merge pull request #3158 from minrk/autosave
...
Add autosaving to the notebook, while retaining manual checkpoint creation.
Autosave will perodically save the notebook, with a default interval of two minutes. This interval is configurable, and the system will automatically back off the frequency if it detects that the save operation takes too long. This can be the case if working remotely over a slow link, so this will automatically conserve bandwidth.
The manual save operation remains available and bound to the same keys, but now it causes the creation of a separate checkpoint, which is stored in a hidden directory called `.ipynb_checkpoints`. This provides users a poor-man's version control with a single revert point and the ability to safely experiment with potentially destructive changes to a notebook without concern that the autosave operation may clobber their file on disk.
See [IPEP 15](https://github.com/ipython/ipython/wiki/IPEP-15%3A-Autosaving-the-IPython-Notebook ) for details of the proposal.
2013-05-01 18:05:40 -07:00
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