Jonathan Frederic
f2b6697098
Use a property instead of a setter method
12 years ago
Jason Grout
d11f48eadb
Make favicon and logo images blocks in the template
12 years ago
Kyle Kelley
d029a3f4a3
Fix link to /tree.
12 years ago
Thomas Kluyver
d3699c8e3b
Update JS docstrings in contents API
12 years ago
Thomas Kluyver
1e53c1f924
Re-raise errors with throw instead of Promise.reject()
12 years ago
Thomas Kluyver
d04e41251d
Merge pull request #6915 from minrk/contents-no-0
...
use Untitled instead of Untitled0
12 years ago
Thomas Kluyver
0295f5a487
Semicolons
12 years ago
Min RK
f569ccc58f
Merge pull request #6920 from SylvainCorlay/serialize_date
...
Dates and Strings are JavaScript objects, and _pack_models behaves incorrectly in these cases.
12 years ago
Min RK
dcfaaf6acb
Merge pull request #6922 from SylvainCorlay/checkbox_height
...
Correct height for the checkbox widget
12 years ago
Min RK
48d77b3f03
Merge pull request #6886 from minrk/tornado-4
...
require tornado 4
12 years ago
Thomas Kluyver
56320588da
Return JSON from contents API checkpoint methods
12 years ago
Thomas Kluyver
aecb4bffa5
All aboard the promise train
12 years ago
Thomas Kluyver
11cfcc40d4
Use promises for GET requests
12 years ago
Thomas Kluyver
9b2dac3fc1
Infrastructure for AJAX requests returning ES6 promises
12 years ago
Sylvain Corlay
7ac82931ca
Tooltip on toggle button
12 years ago
Sylvain Corlay
2a026ed45b
Test packing/unpacking instances of Date and String
12 years ago
Sylvain Corlay
54d6d18baf
Correct height for checkbox widget
12 years ago
Sylvain Corlay
604d0bb666
A String is an object
12 years ago
Sylvain Corlay
4b6c753f3f
Dates are JavaScript objects, and _pack_models returns an empty object
12 years ago
Min RK
0a22217f7e
Merge pull request #6900 from takluyver/contents-api-get-as-type
...
Contents API get as type
12 years ago
Min RK
e4e1d47203
Merge pull request #6694 from takluyver/config-rest-api
...
Add REST API for retrieving, storing and updating config
12 years ago
Min RK
0f8127c36f
Merge pull request #6735 from Carreau/native-map
...
Use native map when possible
12 years ago
Min RK
456e65b1f3
adjustments to filename increment
...
- start with no number (Untitled0 -> Untitled.ipynb)
- copy of copy increments instead of adding another `-Copy` (copy Foo-Copy1.ipynb gives Foo-Copy2.ipynb, not Foo-Copy1-Copy1.ipynb)
- copy file to new folder starts with the original filename, instead of unconditional `-Copy0`
12 years ago
Thomas Kluyver
0f44eced72
Put frontend config files in profile_foo/nbconfig/ subdir
12 years ago
Min RK
b5e7ce30ca
handle setting Widget.comm = None
...
which is done in `Widget.close`
fixes loads of warnings in widget test output, caused every time a widget is closed.
12 years ago
Thomas Kluyver
c9b6e30526
Actually pass URL params with API request
12 years ago
Thomas Kluyver
a469d7658a
Add test for /tree redirects
12 years ago
Thomas Kluyver
f1f81e2efa
Rename get_model() to get()
12 years ago
Thomas Kluyver
6f48b58b18
Fix various review comments
12 years ago
Thomas Kluyver
b5a6cb7da1
Allow specifying format when getting files from contents API
12 years ago
Min RK
287d572fb3
Merge pull request #6855 from takluyver/new-notebook-async
...
Open new windows before creating new notebooks
closes #6849
12 years ago
Min RK
a257e580a0
Merge pull request #6854 from takluyver/post-new-terminal
...
Create new terminals with POST request to API
12 years ago
Thomas Kluyver
e453b160b1
Some fixes for the tree view
12 years ago
Thomas Kluyver
f9db65ab6f
Expose and use get requests specifying type in the JS
12 years ago
Thomas Kluyver
ce6dd40c5c
Add type parameter for contents GET requests
12 years ago
Thomas Kluyver
c7529c53eb
Eliminate remaining uses of extra_settings
12 years ago
Thomas Kluyver
ef98d48921
Disable passing extra AJAX settings to Contents.new()
12 years ago
Thomas Kluyver
b046af083c
Fix some bugs in deleting notebooks from the dashboard
12 years ago
Thomas Kluyver
260ebcebcf
Open window before creating new notebook
...
Avoids the need for synchronous requests.
12 years ago
Min RK
3870a30ce4
contents.new_untitled to match Python API
12 years ago
Min RK
da832ef59f
split ContentsManager.new, add ContentsManager.new_untitled
12 years ago
Min RK
39041a9f03
address review in contents service
...
- various docstrings, comments clarified and updated
- misc typos
- fix and test creating an untitled directory via POST
- only define `message` if there's something to say
12 years ago
Min RK
ba370731a5
fix and test path regexes
...
- require leading `/`
- match empty string
- disallow consecutive `//`
This means that path_regex should be included as `/api/whatever%s`, not `/api/whatever/%s`
12 years ago
Min RK
5c2ae3e92c
fix link-following logic in directory nav
...
avoid infinite recursion by recording which links have been visited
12 years ago
Min RK
81764cc1e0
update save test
...
fix some event waiting while there
12 years ago
Min RK
74c897cc0b
unicode!
12 years ago
Min RK
bc4f0b32bb
rename ContentsManager.create_file->new
...
consistent with js API
12 years ago
Min RK
8407ba3a08
update frontend with path/name changes
...
- remove name from models
- path is full path (contains name)
12 years ago
Min RK
62dedf921b
remove notebook['name'] from sessions
12 years ago
Min RK
b6c4baa2fb
remove copy via PUT
...
only copy via POST to directories
12 years ago
MinRK
3ada0c2c27
Remove separate 'path', 'name' in Contents API
...
- path is full path (including name)
- name is only used for read-only convenience, and plays no role in any API
- remove 'untitled upload' (POST with content and no path)
12 years ago
Kyle Kelley
464967d7a9
Merge pull request #6876 from minrk/falloff-reconnect
...
Add exponential falloff to kernel reconnect
12 years ago
Min RK
6d78644411
s/Connection lost/Not Connected/
12 years ago
Min RK
4871cc4f1d
wait for kernel_ready after ws_closed_error
12 years ago
Min RK
19bcc5fed9
bump minimum tornado version to 4.0
...
remove various websocket workaround for tornado 3
12 years ago
Min RK
f8d59bcd9e
forward-port draft76 websockets
...
from tornado-3.2.2
only enabled during testing with phantomjs
12 years ago
Min RK
42f0684994
add events to ws_closed_error in kernel.js
12 years ago
Min RK
59b54eba53
add Reconnect to kernel menu
12 years ago
Min RK
fe00509f32
add sticky `Connection lost` notification
...
when reconnect process gives up
12 years ago
Min RK
a6d427e5c9
add exponential falloff for reconnect
...
avoids constant reconnect attempts every 3 seconds forever
gives up after 6 tries (last timeout 64s)
12 years ago
Thomas Kluyver
5f456ef438
Document limitations of symlink parameter to install_nbextension
...
Closes gh-6239
12 years ago
Min RK
7cee09381f
Merge pull request #6861 from quantopian/template_dir_option
...
DEV: Support for configurable list of extra jinja template directories.
12 years ago
Thomas Kluyver
9a7c6e78d9
JS Contents API doesn't need dialog module
12 years ago
Scott Sanderson
8a6af683ce
DOC: Fix typo in comment.
12 years ago
Thomas Kluyver
ae6ae8f7b0
Return updated config from PATCH requests
12 years ago
Thomas Kluyver
c26b0f6961
Fix writing JSON on Python 2
12 years ago
Thomas Kluyver
425d5a1c02
Apply JSON config updates recursively
12 years ago
Thomas Kluyver
6786f86c63
Fix docstring, validate JSON on PUT
12 years ago
Thomas Kluyver
a76a546627
Add REST API for retrieving, storing and updating config
12 years ago
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.
12 years ago
Scott Sanderson
cd1304961f
DEV: Support for configurable list of extra jinja template directories.
12 years ago
Jonathan Frederic
bfdf9596fd
Fix bug where cell toolbars are not redrawn,
...
when cell metadata is changed.
12 years ago
Thomas Kluyver
538fcbc025
Close new window on error creating terminal
12 years ago
Thomas Kluyver
e6939f9aa5
Merge pull request #6846 from minrk/deprecate-heading-ui
...
deprecate heading cells in UI
12 years ago
Thomas Kluyver
8da4e89e3a
Make a window immediately, and set its location on response
...
Avoids the need for async:false
12 years ago
v923z
a2081d042e
replaced nbmodel.orig_nbformat by orig_nbformat
12 years ago
v923z
9c122dcd15
fixed notebook checking code
12 years ago
Min RK
ef49e32ef0
Merge pull request #6783 from takluyver/contentsmanager-js
...
contents.js wrapper for contents service
12 years ago
Thomas Kluyver
b7a558d5b9
Use synchronous request for creating new notebooks
...
To get round popup blockers
12 years ago
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
12 years ago
Thomas Kluyver
2a497c16eb
load_file -> load
12 years ago
Thomas Kluyver
1f2e4cc6c3
Fix passing empty list to draw_notebook_list()
12 years ago
Thomas Kluyver
a4f869aa8b
Rename methods to remove _file suffix
12 years ago
Thomas Kluyver
5279418acf
Make Contents.new more generic
12 years ago
Thomas Kluyver
4452754a6b
Set notebook nbformat in toJSON
12 years ago
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.
12 years ago
Thomas Kluyver
963921c4ff
Merge pull request #6832 from minrk/request-only-once
...
actually send only one kernel_info request
12 years ago
Thomas Kluyver
684516c79f
Fix copy-paste mistakes
12 years ago
Thomas Kluyver
658eb39c56
Remove one more unnecessary cache parameter
12 years ago
Thomas Kluyver
2962a3ce17
Remove some unnecessary cache: false parameters
...
According to the jQuery docs, this is only needed for GET and HEAD
requests.
12 years ago
Thomas Kluyver
a2f3e23fd8
Add copy_file to contents JS API
12 years ago
Thomas Kluyver
1ae6be218d
Fix require config
12 years ago
Thomas Kluyver
b8f9dc07e2
Fix error callback when deleting file
12 years ago
Kester Tong
9797a6b7c0
typo fix
12 years ago
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.
12 years ago
Thomas Kluyver
e1cbaf3d3c
Fix spelling
12 years ago
Thomas Kluyver
f8ec8d4abe
Various minor fixes from review
12 years ago
Thomas Kluyver
ea314a2a86
Rename callback parameters to success/error
12 years ago
Thomas Kluyver
060dd1305c
Miscellaneous JS fixes
12 years ago
Thomas Kluyver
c1c591336e
Some more event cleanup
12 years ago
Thomas Kluyver
cf828ccf4e
Cut out some superfluous events
12 years ago
Thomas Kluyver
c9bd254735
Make contents JS API consistent
12 years ago
Thomas Kluyver
29d88a91a6
Standardise JS checkpointing API, use it for notebooks
12 years ago
Thomas Kluyver
14106cbd66
Move contents API module into services
12 years ago
Thomas Kluyver
a10dea4cd5
Add Contents.api_url convenience function
12 years ago
Thomas Kluyver
9538726b16
Don't do UI stuff in contents API module
12 years ago
Thomas Kluyver
478648bde5
Page URL is /notebooks/..., not contents
12 years ago
Thomas Kluyver
c661c85abd
Add missing semicolon
12 years ago
Jeff Hemmelgarn
47a88f0e1d
Remove version
12 years ago
Jeff Hemmelgarn
dab99c599f
Remove unnecessary backwards compatibility code
12 years ago
Jeff Hemmelgarn
53463898eb
Move contentmanager to contents
12 years ago
jhemmelg
5109be2d28
ContentManager function signatures updated
12 years ago
jhemmelg
496fa1901f
Initial interface for javascript contentmanagers
...
contentmanager.js is going to be a js proxy for the current
filenbmanager.py. This will allow a contentmanager for Google Drive to
be created.
12 years ago
Jeff Hemmelgarn
09e0ff93d8
Fix a few problems with cherry-picked commits
...
api/notebooks => api/contents
add type to JSON model
fix a few things in notebooklist.js
12 years ago
KesterTong
3994d4d56a
Adds configuration options to use Google Drive content manager
...
Adds the key contentmanager_js_source to webapp_settings that allows for specifying the content manager JavaScript source file. Also adds a NotebookManager subclass, ClientSideNotebookManager, which does minimal logic. This class is used when the JavaScript content manager doesn't use the Python notebook manager, but rather implements that logic client side, as is the case for the Google Drive based content manager.
A sample command line that uses the Google Drive content manager, and the ClientSideNotebookManager, is
ipython notebook --NotebookApp.webapp_settings="{'contentmanager_js_source': 'base/js/drive_contentmanager'}" --NotebookApp.notebook_manager_class="IPython.html.services.notebooks.clientsidenbmanager.ClientSideNotebookManager"
12 years ago
KesterTong
952ac7d0d8
Moves load_notebook to ContentManager and adds new_notebook to Google Drive version
12 years ago
KesterTong
e3ef5d3b70
Moves list_notebooks to ContentManager
12 years ago
KesterTong
dfcf14f26c
Uses events for ContentManager.save_notebook
...
Modifies ContentManager.save_notebook() to use events, so that the Notebook instance can listen for success or failure events. Also moves some logic out of save_notebook()
12 years ago
KesterTong
04fc61285f
Use events for rename_notebook
...
Triggers events on ContentManager.rename_notebook success and failure. Also moves some logic out of this method.
12 years ago
KesterTong
75d7e69fc8
Use $.proxy instead of that
12 years ago
KesterTong
9881d17bb1
Remove unused event
...
This event never seems to get used.
12 years ago
KesterTong
61a911fc0c
Fix constructor comments
...
Add content_manager as a dictionary key to the options param passed in to the NotebookList and Notebook constructors.
12 years ago
KesterTong
0aada3ac5d
Remove deleted notebook from notebook list
...
Uses events to notify the NotebookList when the content manager deletes a notebook, and remove the deleted notebook in response to such an event.
12 years ago
KesterTong
077ba397c1
Removes unnecessary parameter from ContentManager.delete_notebook
12 years ago
Jeff Hemmelgarn
99323b1173
Move saving to contentmanager
...
Make notebook.save_notebook call contentmanager.save_notebook.
12 years ago
Jeff Hemmelgarn
5b5e194082
Move notebook.rename to contentmanager
...
Make notebook.rename call contentmanager.rename
12 years ago
Jeff Hemmelgarn
7043aa1b9e
switch notebook.delete to use contentmanager
...
Make notebook.delete call contentmanager.delete_notebook
12 years ago
Jeff Hemmelgarn
728c6f005f
Move deleting a notebook to contentmanager.js
...
Move code to handle deleting a notebook from notebooklist to
contentmanager.
12 years ago
KesterTong
993833d018
Replace other methods with ContentManager.new_notebook
...
Replaces Notebook.new_notebook and NotebookList.new_notebook with ContentManager.new_notebook
12 years ago
KesterTong
d17ca85f5b
Adds dialog on new_notebook failure
...
This logic doesn't really belong in ContentManager. It would be better to trigger an event, which is handled somewhere else. But there's no obvious place to put this event, so creating the error dialog inside the new_notebook method is ok for now.
12 years ago
KesterTong
5717a3eb10
Make ContentManager stateless
...
Don't store notebook_path in ContentManager, because this sort of state (in addition to notebook_name) can change, and keeping track of this logic doesn't seem to be a part of the file management system. Instead, this logic can be left to the Notebook instance (and possible other places that manage it). This makes refactoring easier, and avoids having to replicate this logic in every implementation of ContentManager.
12 years ago
KesterTong
99f2647edd
Use IPython style constructor
12 years ago
KesterTong
21a5b5a965
Style and bug fixes
12 years ago
jhemmelg
112a74c566
ContentManager function signatures updated
12 years ago
jhemmelg
d5a84bb8a4
Initial interface for javascript contentmanagers
...
contentmanager.js is going to be a js proxy for the current
filenbmanager.py. This will allow a contentmanager for Google Drive to
be created.
12 years ago
Thomas Kluyver
a16a3d0270
Merge pull request #6045 from minrk/nbformat4
...
nbformat v4
12 years ago
Min RK
96183a60a0
create new terminals with POST /api/terminals
...
instead of GET terminals/new
to be consistent with creating new notebooks.
We had to stop using GET notebooks/new
because browsers would create new notebooks when making preview thumbnails for commonly visited pages, etc.
I assume the same issue would apply to terminals
12 years ago
Min RK
196b91e73b
Merge pull request #6828 from takluyver/terminal-list
...
Add terminals tab to the dashboard
12 years ago
Min RK
525f6a7561
fix backward `f, nb` args for nbformat.write
12 years ago
MinRK
7cf53c998c
restore ability to sign v3 notebooks
12 years ago
MinRK
53ef8e1e1e
remove unused OuptutArea.rename_keys
12 years ago
MinRK
af735018f3
don't use nbformat.current in IPython.html
...
use top-level nbformat.read/write, v4 directly for compose
12 years ago
MinRK
ae0b46aa3f
address review from takluyver
...
- various typos
- discuss multi-line strings in nbformat doc
- testing cleanup
- py3compat simplification
- don't use setdefault when composing notebook nodes
- mime-type fix in svg2pdf
12 years ago
MinRK
12f94ae2a2
use from_dict for dict->notebook
...
not confusing to_notebook_json
12 years ago
MinRK
d979f4bedd
better regex replacement for MarkdownCell.set_heading_level
...
(c/o Matthias)
12 years ago
MinRK
dd95b1ef5f
remove heading cells in v4
12 years ago
MinRK
458dcd12e3
make markdown heading input match output size
12 years ago
MinRK
6ca260e611
output[mime/type] -> output.data[mime/type] in javascript
12 years ago
MinRK
a50042745f
semicolons, you guys!
12 years ago
MinRK
baf65234b9
move mime-bundle data to rich output.data
...
from top-level output keys
12 years ago