Min RK
0fa751b894
Merge pull request #7798 from jasongrout/buffer-memoryview
...
Extract session buffers as memoryviews
2015-03-20 09:49:27 -04:00
Peter Parente
dc8f9b0733
Ensure Cache-Control is set once and only once
...
Whether browsers should pick the first or last instance of a duped header is ill defined
2015-03-03 22:40:27 -05:00
Jason Grout
8b5715d738
Add check to skip work in versions past 3.4
2015-02-17 16:52:28 +00:00
Jason Grout
d9d089759d
Fix websocket/zmq serialization to expect memoryviews
2015-02-16 21:53:26 +00:00
Min RK
07e5f78ef2
handle message arriving when sockets are closed
...
check both the incoming and outgoing streams
before proceeding to send messages
2015-02-12 16:21:36 -08:00
Min RK
b34d9eb76a
backport WebSocket.send_error from tornado 4.1
...
raising an exception in a websocket results in
"Method not supported" on tornado 4.0
2015-02-12 16:20:50 -08:00
Min RK
c62298f40b
empty default_url when outside IPython
2015-01-27 10:51:33 -08:00
Min RK
2d0b8b1d6a
use default_url for logo link
2015-01-27 10:39:50 -08:00
Min RK
1cac03528b
use single WebSocket connection for all channels
...
multiplex on a 'channel' key in message,
rather than separate websockets.
Unlike zmq, there aren't different message patterns that require the channels to be separate.
Reduces FD count by factor of 3 and connection complexity in js.
2015-01-06 11:15:15 -08:00
Min RK
c6b610f04f
make FilesRedirectHandler redirect logic accessible
...
from a static method
instead of calling FRH.get(self), which doesn't work on Python 2
due to unbound method class checking.
2014-12-27 15:11:42 -08:00
Min RK
979eb2d281
don't enforce .ipynb extension in URLs
...
let ContentsManager decide what's a notebook
2014-12-19 12:42:28 -08:00
Min RK
41b548bacc
use gen.Return for Python 2
2014-12-16 21:20:09 -08:00
Min RK
dc70ae6b07
allow ContentsManager methods to return Futures
...
mainly adding `@gen.coroutine` and `yield gen.maybe_future` all over the place.
No FileContentsManager methods are actually async at this point.
2014-12-16 15:01:59 -08:00
Thomas Kluyver
4c62fd4210
Merge pull request #7149 from minrk/thread-nb
...
run test notebook server in thread
2014-12-10 10:06:02 -08:00
Thomas Kluyver
4cee2f5f3a
Merge pull request #7128 from minrk/more-v-less-m
...
A little more V, a little less M in the text editor
2014-12-09 14:03:04 -08:00
MinRK
1ec9cfc25c
use IOLoop.current in a few places
...
better allow notebook server to run in a thread
2014-12-08 15:47:56 -08:00
Min RK
c81609f5d6
redirect /edit/ to /files/ if not (utf8) text
2014-12-08 11:34:21 -08:00
Min RK
8c2ced501d
address review in custom auth
2014-12-08 10:51:14 -08:00
Min RK
dbb5e9a107
allow LoginHandler to override get_current_user
2014-12-07 14:10:54 -08:00
Min RK
bb01b716e0
allow login_handler to be undefined
...
(for use outside IPython)
2014-12-07 14:10:53 -08:00
Min RK
16d1f0fd84
update custom auth per review
...
- pass settings around, not applications
2014-12-07 14:10:53 -08:00
Phil Elson
d81990c941
Added authentication configuration for the notebook app.
2014-12-07 14:10:52 -08:00
Kyle Kelley
858d153bff
Remove extraneous pass
...
YOU SHALL NOT PASS!
I rap fast like Shadowfax!
2014-12-02 15:12:14 -06:00
Kyle Kelley
219ca3046a
Clean up default content security policy setup
2014-12-02 15:12:14 -06:00
Kyle Kelley
17d1c2d488
Report CSP violations as warnings.
2014-12-02 15:12:14 -06:00
Kyle Kelley
5343787e9d
Remove CSP reporting since it fills console.
2014-12-02 15:12:14 -06:00
Kyle Kelley
5065429bfd
Clean up logs, enable debug log for header except
2014-12-02 15:12:13 -06:00
Kyle Kelley
bd85ff25df
Restrict frame-ancestors to 'self' in CSP
2014-12-02 15:12:13 -06:00
Kyle Kelley
3068733c46
Log reporter policy to debug
2014-12-02 15:12:13 -06:00
Kyle Kelley
cb19f07c9a
csp_report_uri caused a cyclic dependency
2014-12-02 15:12:13 -06:00
Kyle Kelley
5b53d2db45
Set default policy to nothing, only report.
2014-12-02 15:12:13 -06:00
Kyle Kelley
23b9f09177
Log CSP violations via report
2014-12-02 15:12:13 -06:00
Kyle Kelley
a00d6930f2
Adapt headers to using Content Security Policy
2014-12-02 15:12:12 -06:00
Min RK
9a4de7b78d
Merge pull request #7041 from takluyver/nbconfig-manager
...
ConfigManager class for frontend config
2014-12-01 11:32:09 -08:00
Thomas Kluyver
98cd14c04c
Remove profile_dir from handler class
2014-11-25 18:10:14 -08:00
Thomas Kluyver
febd670716
First stab at ConfigManager class
2014-11-25 18:02:24 -08:00
Min RK
3cf5262b0c
don't cache files in static/custom or nbextensions
...
always rely on 304 for cache content there
2014-11-24 21:29:45 -08:00
Min RK
a492ac554d
add '?v=<date>' to require URLs
...
- resets cache on server restart
- don't cache requests on master (rely on 304 for content caching)
2014-11-24 20:58:04 -08:00
MinRK
fe730a60c2
set no-cache header in StaticFileHandlers
...
rely on 304 Not Modified for caching content
2014-11-24 20:19:55 -08:00
Min RK
48d77b3f03
Merge pull request #6886 from minrk/tornado-4
...
require tornado 4
2014-11-13 12:23:32 -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
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
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
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)
2014-11-10 14:02:18 -08:00
Min RK
19bcc5fed9
bump minimum tornado version to 4.0
...
remove various websocket workaround for tornado 3
2014-11-07 22:39:25 -08:00
Min RK
f8d59bcd9e
forward-port draft76 websockets
...
from tornado-3.2.2
only enabled during testing with phantomjs
2014-11-07 22:39:24 -08:00
Thomas Kluyver
a76a546627
Add REST API for retrieving, storing and updating config
2014-11-06 11:18:04 -08:00
Thomas Kluyver
f8ec8d4abe
Various minor fixes from review
2014-11-03 10:18:28 -08:00
Thomas Kluyver
14106cbd66
Move contents API module into services
2014-11-03 10:18:27 -08:00
Jeff Hemmelgarn
53463898eb
Move contentmanager to contents
2014-11-03 10:18:27 -08:00