Thomas Kluyver
6786f86c63
Fix docstring, validate JSON on PUT
2014-11-06 11:18:04 -08:00
Thomas Kluyver
a76a546627
Add REST API for retrieving, storing and updating config
2014-11-06 11:18:04 -08:00
Scott Sanderson
c1196da096
DEV: Add IPython.html to the default template path.
...
This makes it possible to override a file with a template that also
inherits from that file.
For example, this makes it possible to override a single block of
notebook.html by creating a file called notebook.html that inherits from
templates/notebook.html.
2014-11-05 13:29:31 -05:00
Thomas Kluyver
39bf433c9d
Merge pull request #6860 from minrk/slimerjs
...
distinguish capture_output from buffer_output
2014-11-05 08:50:18 -08:00
Scott Sanderson
cd1304961f
DEV: Support for configurable list of extra jinja template directories.
2014-11-05 00:19:17 -05:00
Min RK
c88bd5025a
distinguish capture_output from buffer_output
...
allow capturing output without silencing it,
which is useful for slimerjs,
which requires looking at output to determine failure.
2014-11-04 15:59:27 -08:00
Jonathan Frederic
bfdf9596fd
Fix bug where cell toolbars are not redrawn,
...
when cell metadata is changed.
2014-11-04 14:03:52 -08:00
Thomas Kluyver
538fcbc025
Close new window on error creating terminal
2014-11-04 10:44:08 -08:00
Thomas Kluyver
e6939f9aa5
Merge pull request #6846 from minrk/deprecate-heading-ui
...
deprecate heading cells in UI
2014-11-04 10:06:47 -08:00
Thomas Kluyver
8da4e89e3a
Make a window immediately, and set its location on response
...
Avoids the need for async:false
2014-11-04 09:53:17 -08:00
Matthias Bussonnier
97fb92a824
Merge pull request #6851 from v923z/master
...
fixed notebook checking code
2014-11-04 15:30:20 +01:00
v923z
a2081d042e
replaced nbmodel.orig_nbformat by orig_nbformat
2014-11-04 15:10:55 +01:00
v923z
9c122dcd15
fixed notebook checking code
2014-11-04 14:57:44 +01:00
Min RK
ef49e32ef0
Merge pull request #6783 from takluyver/contentsmanager-js
...
contents.js wrapper for contents service
2014-11-03 17:09:49 -08:00
Thomas Kluyver
b7a558d5b9
Use synchronous request for creating new notebooks
...
To get round popup blockers
2014-11-03 15:29:09 -08:00
Min RK
04bcfa626d
deprecate heading cells in UI
...
- removed from Kernel Menu
- Main toolbar warns via shouty dialog
- keyboard shortcuts still work to make headings in markdown cells, with no warning
2014-11-03 15:05:54 -08:00
Thomas Kluyver
2a497c16eb
load_file -> load
2014-11-03 14:46:49 -08:00
Thomas Kluyver
1f2e4cc6c3
Fix passing empty list to draw_notebook_list()
2014-11-03 14:41:50 -08:00
Thomas Kluyver
a4f869aa8b
Rename methods to remove _file suffix
2014-11-03 14:40:09 -08:00
Thomas Kluyver
5279418acf
Make Contents.new more generic
2014-11-03 14:29:39 -08:00
Thomas Kluyver
4452754a6b
Set notebook nbformat in toJSON
2014-11-03 14:20:12 -08:00
Thomas Kluyver
d4a2d85383
Merge pull request #6844 from minrk/nbformat4-from-backport
...
a couple of nbformat 4 fixes I noticed while backporting v4 to 2.x
2014-11-03 12:35:10 -08:00
Min RK
6b67a69c22
don't assume converted notebooks are old
...
in notebook.js dialogs, which can now be triggered
by nbformat 4 from the future.
2014-11-03 11:50:11 -08:00
Thomas Kluyver
963921c4ff
Merge pull request #6832 from minrk/request-only-once
...
actually send only one kernel_info request
2014-11-03 10:37:17 -08:00
Min RK
2462d71e1c
upate exmaple notebooks to nbformat v4
2014-11-03 10:23:10 -08:00
Thomas Kluyver
684516c79f
Fix copy-paste mistakes
2014-11-03 10:21:38 -08:00
Thomas Kluyver
658eb39c56
Remove one more unnecessary cache parameter
2014-11-03 10:19:51 -08:00
Thomas Kluyver
2962a3ce17
Remove some unnecessary cache: false parameters
...
According to the jQuery docs, this is only needed for GET and HEAD
requests.
2014-11-03 10:19:51 -08:00
Thomas Kluyver
a2f3e23fd8
Add copy_file to contents JS API
2014-11-03 10:19:51 -08:00
Thomas Kluyver
1ae6be218d
Fix require config
2014-11-03 10:19:51 -08:00
Thomas Kluyver
b8f9dc07e2
Fix error callback when deleting file
2014-11-03 10:19:51 -08:00
Kester Tong
9797a6b7c0
typo fix
2014-11-03 10:19:51 -08:00
Kester Tong
89df330129
Modifies Contents API to return Error objects
...
Modfies the Contents class to return JavaScript Error objects instead of passing on the return values from $.ajax(). This has two advantages. First, it allows the content manager to parse errors and give more informative messages than the ajax response. Second, it makes the Contents interface more general, since other kinds of backends might generate client-side errors.
2014-11-03 10:19:50 -08:00
Thomas Kluyver
e1cbaf3d3c
Fix spelling
2014-11-03 10:18:28 -08:00
Thomas Kluyver
f8ec8d4abe
Various minor fixes from review
2014-11-03 10:18:28 -08:00
Thomas Kluyver
ea314a2a86
Rename callback parameters to success/error
2014-11-03 10:18:28 -08:00
Thomas Kluyver
060dd1305c
Miscellaneous JS fixes
2014-11-03 10:18:28 -08:00
Thomas Kluyver
c1c591336e
Some more event cleanup
2014-11-03 10:18:28 -08:00
Thomas Kluyver
cf828ccf4e
Cut out some superfluous events
2014-11-03 10:18:28 -08:00
Thomas Kluyver
c9bd254735
Make contents JS API consistent
2014-11-03 10:18:28 -08:00
Thomas Kluyver
29d88a91a6
Standardise JS checkpointing API, use it for notebooks
2014-11-03 10:18:27 -08:00
Thomas Kluyver
14106cbd66
Move contents API module into services
2014-11-03 10:18:27 -08:00
Thomas Kluyver
a10dea4cd5
Add Contents.api_url convenience function
2014-11-03 10:18:27 -08:00
Thomas Kluyver
9538726b16
Don't do UI stuff in contents API module
2014-11-03 10:18:27 -08:00
Thomas Kluyver
478648bde5
Page URL is /notebooks/..., not contents
2014-11-03 10:18:27 -08:00
Thomas Kluyver
c661c85abd
Add missing semicolon
2014-11-03 10:18:27 -08:00
Jeff Hemmelgarn
47a88f0e1d
Remove version
2014-11-03 10:18:27 -08:00
Jeff Hemmelgarn
dab99c599f
Remove unnecessary backwards compatibility code
2014-11-03 10:18:27 -08:00
Jeff Hemmelgarn
53463898eb
Move contentmanager to contents
2014-11-03 10:18:27 -08:00
jhemmelg
5109be2d28
ContentManager function signatures updated
2014-11-03 10:18:04 -08:00