Commit Graph

5871 Commits

Author SHA1 Message Date
Thomas Kluyver
0295f5a487 Semicolons 2014-11-13 12:30:26 -08:00
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.
2014-11-13 12:26:02 -08:00
Min RK
dcfaaf6acb Merge pull request #6922 from SylvainCorlay/checkbox_height
Correct height for the checkbox widget
2014-11-13 12:24:21 -08:00
Min RK
48d77b3f03 Merge pull request #6886 from minrk/tornado-4
require tornado 4
2014-11-13 12:23:32 -08:00
Thomas Kluyver
56320588da Return JSON from contents API checkpoint methods 2014-11-13 12:20:53 -08:00
Thomas Kluyver
aecb4bffa5 All aboard the promise train 2014-11-13 12:17:49 -08:00
Thomas Kluyver
6b85afb077 Add es6-promise to package_data 2014-11-13 11:59:15 -08:00
Thomas Kluyver
11cfcc40d4 Use promises for GET requests 2014-11-13 11:42:52 -08:00
Thomas Kluyver
9b2dac3fc1 Infrastructure for AJAX requests returning ES6 promises 2014-11-13 11:42:37 -08:00
Sylvain Corlay
7ac82931ca Tooltip on toggle button 2014-11-13 19:04:06 +00:00
Sylvain Corlay
2a026ed45b Test packing/unpacking instances of Date and String 2014-11-13 18:50:21 +00:00
Sylvain Corlay
54d6d18baf Correct height for checkbox widget 2014-11-13 17:46:19 +00:00
Sylvain Corlay
604d0bb666 A String is an object 2014-11-13 15:42:31 +00:00
Sylvain Corlay
4b6c753f3f Dates are JavaScript objects, and _pack_models returns an empty object 2014-11-13 15:37:56 +00:00
Min RK
0a22217f7e Merge pull request #6900 from takluyver/contents-api-get-as-type
Contents API get as type
2014-11-12 21:43:50 -08:00
Min RK
e4e1d47203 Merge pull request #6694 from takluyver/config-rest-api
Add REST API for retrieving, storing and updating config
2014-11-12 21:40:30 -08:00
Min RK
0f8127c36f Merge pull request #6735 from Carreau/native-map
Use native map when possible
2014-11-12 16:31:51 -08:00
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`
2014-11-12 16:24:35 -08:00
Thomas Kluyver
0f44eced72 Put frontend config files in profile_foo/nbconfig/ subdir 2014-11-12 15:53:35 -08:00
Thomas Kluyver
18cb072e77 Merge pull request #6911 from minrk/no-no-cr-cr-lf
don't use text mode in mkstemp
2014-11-12 14:47:12 -08:00
Min RK
47f307e4c8 don't use text mode in mkstemp
causes double-encoding of newlines,
preventing newline arg from having desired effect.
2014-11-12 14:17:32 -08:00
Thomas Kluyver
aaf660d204 Merge pull request #6908 from minrk/del-comm-id
handle setting Widget.comm = None
2014-11-12 11:49:38 -08:00
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.
2014-11-12 11:29:10 -08:00
Thomas Kluyver
c9b6e30526 Actually pass URL params with API request 2014-11-11 18:18:36 -08:00
Thomas Kluyver
a469d7658a Add test for /tree redirects 2014-11-11 15:11:54 -08:00
Thomas Kluyver
f1f81e2efa Rename get_model() to get() 2014-11-11 14:51:21 -08:00
Thomas Kluyver
6f48b58b18 Fix various review comments 2014-11-11 14:46:53 -08:00
Thomas Kluyver
b5a6cb7da1 Allow specifying format when getting files from contents API 2014-11-11 14:20:56 -08:00
Min RK
287d572fb3 Merge pull request #6855 from takluyver/new-notebook-async
Open new windows before creating new notebooks

closes #6849
2014-11-11 14:18:00 -08:00
Min RK
a257e580a0 Merge pull request #6854 from takluyver/post-new-terminal
Create new terminals with POST request to API
2014-11-11 14:12:54 -08:00
Thomas Kluyver
e453b160b1 Some fixes for the tree view 2014-11-11 12:32:24 -08:00
Thomas Kluyver
f9db65ab6f Expose and use get requests specifying type in the JS 2014-11-11 12:32:13 -08:00
Thomas Kluyver
ce6dd40c5c Add type parameter for contents GET requests 2014-11-11 12:17:36 -08:00
Min RK
8a4552c5f1 Merge pull request #6899 from ipython/win-install-no-setuptools
Install on Windows without using setuptools
2014-11-11 12:03:35 -08:00
Thomas Kluyver
c7529c53eb Eliminate remaining uses of extra_settings 2014-11-11 11:00:19 -08:00
Thomas Kluyver
ef98d48921 Disable passing extra AJAX settings to Contents.new() 2014-11-11 10:58:31 -08:00
Thomas Kluyver
b046af083c Fix some bugs in deleting notebooks from the dashboard 2014-11-11 10:58:31 -08:00
Thomas Kluyver
260ebcebcf Open window before creating new notebook
Avoids the need for synchronous requests.
2014-11-11 10:57:32 -08:00
Thomas Kluyver
b80be59fef Update some docstrings 2014-11-11 10:45:18 -08:00
Thomas Kluyver
37a2a8a6e5 Install on Windows without using setuptools
This creates batch files, with a .cmd extension, which can launch
IPython from 'ipython' at a command line, to replace the .exe files
created by setuptools.

This makes repeated installations much quicker on Windows.
2014-11-11 10:38:05 -08:00
Thomas Kluyver
28cc4e9c84 Merge pull request #6809 from minrk/rm-contents-path-name
remove separate 'path' and 'name' from ContentsManager
2014-11-10 18:33:41 -08:00
Min RK
3870a30ce4 contents.new_untitled to match Python API 2014-11-10 17:29:53 -08:00
Min RK
da832ef59f split ContentsManager.new, add ContentsManager.new_untitled 2014-11-10 14:52:14 -08:00
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
2014-11-10 14:02:21 -08:00
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`
2014-11-10 14:02:21 -08:00
Min RK
5c2ae3e92c fix link-following logic in directory nav
avoid infinite recursion by recording which links have been visited
2014-11-10 14:02:20 -08:00
Min RK
81764cc1e0 update save test
fix some event waiting while there
2014-11-10 14:02:20 -08:00
Min RK
74c897cc0b unicode! 2014-11-10 14:02:20 -08:00
Min RK
bc4f0b32bb rename ContentsManager.create_file->new
consistent with js API
2014-11-10 14:02:19 -08:00
Min RK
8407ba3a08 update frontend with path/name changes
- remove name from models
- path is full path (contains name)
2014-11-10 14:02:19 -08:00