Min RK
07e5f78ef2
handle message arriving when sockets are closed
...
check both the incoming and outgoing streams
before proceeding to send messages
11 years ago
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
11 years ago
Min RK
c62298f40b
empty default_url when outside IPython
11 years ago
Min RK
2d0b8b1d6a
use default_url for logo link
11 years ago
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.
11 years ago
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.
11 years ago
Min RK
979eb2d281
don't enforce .ipynb extension in URLs
...
let ContentsManager decide what's a notebook
11 years ago
Min RK
41b548bacc
use gen.Return for Python 2
11 years ago
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.
11 years ago
Thomas Kluyver
4c62fd4210
Merge pull request #7149 from minrk/thread-nb
...
run test notebook server in thread
11 years ago
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
11 years ago
MinRK
1ec9cfc25c
use IOLoop.current in a few places
...
better allow notebook server to run in a thread
11 years ago
Min RK
c81609f5d6
redirect /edit/ to /files/ if not (utf8) text
11 years ago
Min RK
8c2ced501d
address review in custom auth
11 years ago
Min RK
dbb5e9a107
allow LoginHandler to override get_current_user
11 years ago
Min RK
bb01b716e0
allow login_handler to be undefined
...
(for use outside IPython)
11 years ago
Min RK
16d1f0fd84
update custom auth per review
...
- pass settings around, not applications
11 years ago
Phil Elson
d81990c941
Added authentication configuration for the notebook app.
11 years ago
Kyle Kelley
858d153bff
Remove extraneous pass
...
YOU SHALL NOT PASS!
I rap fast like Shadowfax!
11 years ago
Kyle Kelley
219ca3046a
Clean up default content security policy setup
11 years ago
Kyle Kelley
17d1c2d488
Report CSP violations as warnings.
11 years ago
Kyle Kelley
5343787e9d
Remove CSP reporting since it fills console.
11 years ago
Kyle Kelley
5065429bfd
Clean up logs, enable debug log for header except
11 years ago
Kyle Kelley
bd85ff25df
Restrict frame-ancestors to 'self' in CSP
11 years ago
Kyle Kelley
3068733c46
Log reporter policy to debug
11 years ago
Kyle Kelley
cb19f07c9a
csp_report_uri caused a cyclic dependency
11 years ago
Kyle Kelley
5b53d2db45
Set default policy to nothing, only report.
11 years ago
Kyle Kelley
23b9f09177
Log CSP violations via report
11 years ago
Kyle Kelley
a00d6930f2
Adapt headers to using Content Security Policy
11 years ago
Min RK
9a4de7b78d
Merge pull request #7041 from takluyver/nbconfig-manager
...
ConfigManager class for frontend config
11 years ago
Thomas Kluyver
98cd14c04c
Remove profile_dir from handler class
11 years ago
Thomas Kluyver
febd670716
First stab at ConfigManager class
11 years ago
Min RK
3cf5262b0c
don't cache files in static/custom or nbextensions
...
always rely on 304 for cache content there
11 years ago
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)
11 years ago
MinRK
fe730a60c2
set no-cache header in StaticFileHandlers
...
rely on 304 Not Modified for caching content
11 years ago
Min RK
48d77b3f03
Merge pull request #6886 from minrk/tornado-4
...
require tornado 4
11 years ago
Min RK
e4e1d47203
Merge pull request #6694 from takluyver/config-rest-api
...
Add REST API for retrieving, storing and updating config
11 years ago
Min RK
a257e580a0
Merge pull request #6854 from takluyver/post-new-terminal
...
Create new terminals with POST request to API
11 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`
11 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)
11 years ago
Min RK
19bcc5fed9
bump minimum tornado version to 4.0
...
remove various websocket workaround for tornado 3
11 years ago
Min RK
f8d59bcd9e
forward-port draft76 websockets
...
from tornado-3.2.2
only enabled during testing with phantomjs
11 years ago
Thomas Kluyver
a76a546627
Add REST API for retrieving, storing and updating config
11 years ago
Thomas Kluyver
f8ec8d4abe
Various minor fixes from review
11 years ago
Thomas Kluyver
14106cbd66
Move contents API module into services
11 years ago
Jeff Hemmelgarn
53463898eb
Move contentmanager to contents
11 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"
11 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
11 years ago
Matthias Bussonnier
63d4534959
Get pre_get to work and make session logs when adapter changes
11 years ago
Min RK
965102ba60
Merge pull request #6554 from Carreau/itsallaboutme
...
Add About IPython
11 years ago