10043 Commits

Author SHA1 Message Date
Min RK
316bfdbd1e Catch and log handler exceptions in events.trigger
rather than throwing handler errors in the call to `.trigger()`

Extensions can register buggy event handlers.
These should not be able to cause failures in the event-triggering code paths.

This should fix several avenues where extensions (or other bugs) could prevent a notebook from loading.
2016-12-02 10:41:13 +01:00
Min RK
1e070a50f5 don't check origin on token-authenticated requests
adds LoginHandler.should_check_origin classmethod API
2016-12-02 10:07:25 +01:00
Min RK
910caf56e1 Don't check origin on CSP violation reports
still authenticate, though
2016-12-02 10:07:08 +01:00
Jason Grout
ec13af58d7 Add debug log for static file paths 2016-12-01 16:00:25 -05:00
Min RK
7621fae43e include PATH in cross-origin blocking log message
makes it clearer what's being blocked
2016-12-01 21:57:46 +01:00
John Detlefs
77252b97a9 Change responses to actual behavior.
Fill in missing response descriptions

Fix terminal ID error
2016-11-29 22:15:44 -08:00
Thomas Kluyver
e1e760367d Merge pull request #1933 from michaelpacer/doc_improver
adding link to actual source file per spatialaudio/nbsphinx#74
2016-11-29 18:19:57 +00:00
michaelpacer
50c7df0958 adding link to actual source file per spatialaudio/nbsphinx#74 2016-11-29 09:51:17 -08:00
Kyle Kelley
cc9b6a7cc9 Merge pull request #1931 from michaelpacer/doc_improver
Fix sphinx warning about new lines after markup
2016-11-28 17:18:51 -08:00
michaelpacer
791e398679 Fix sphinx warning about new lines after markup 2016-11-28 16:55:15 -08:00
Kyle Kelley
4955d48a8c Merge pull request #1930 from michaelpacer/doc_improver
Remove redundant code-block invocation
2016-11-28 16:38:49 -08:00
michaelpacer
9e3e946a42 Change sourcecode:: to code-block:: 2016-11-28 15:43:10 -08:00
michaelpacer
d751f177c3 Remove redundant code-block invocation 2016-11-28 15:13:11 -08:00
Kyle Kelley
782f488553 Merge pull request #1921 from minrk/cm521
CodeMirror 5.21
2016-11-25 08:46:40 -08:00
Min RK
6b37be0ca5 get CM 5.21 from components
since cm itself doesn't support bower as of 5.20
2016-11-25 15:16:18 +01:00
Min RK
efcd703268 CodeMirror 5.19
CodeMirror's dropped support for bower at 5.19
2016-11-25 14:30:59 +01:00
Min RK
0be8c6e378 Merge pull request #1920 from gnestor/table-max-width
Change max-width for tables to 150px
2016-11-24 11:59:10 +01:00
Grant Nestor
8d66114992 Change max-width for tables to 150px 2016-11-23 11:21:21 -08:00
Kyle Kelley
391a72dbb8 Merge pull request #1919 from minrk/rm-debug-statement
remove leftover print statement
2016-11-23 11:11:54 -08:00
Min RK
cf1fe8883c Merge pull request #1916 from alexandercbooth/add-baseUrl-dwnldselect
add base_url to download_selected
2016-11-23 16:16:19 +01:00
alexandercbooth
fd9cddd82a chore(baseUrl): remove forward slash from path 2016-11-23 09:59:25 -05:00
Min RK
951cfde98b remove leftover print statement 2016-11-23 14:39:30 +01:00
alexandercbooth
cf37b9f145 [WIP] chore(baseUrl): add base_url to download_selected 2016-11-23 00:52:12 -05:00
Matthias Bussonnier
50ec132615 Merge pull request #1908 from gnestor/pr/1907
Improve `Notebook.render_cell_output`
2016-11-22 08:49:39 -08:00
Thomas Kluyver
bff31f3923 Merge pull request #1912 from takluyver/docs-comms-py-blocks
Fix highlighting of Python code blocks
2016-11-20 14:25:47 +00:00
Thomas Kluyver
8f7825031f Fix highlighting of Python code blocks
The configuration on RTD doesn't default to Python highlighting, it
seems.

http://jupyter-notebook.readthedocs.io/en/latest/comms.html
2016-11-20 13:56:58 +00:00
Grant Nestor
bbec3d7cc1 Do not overwrite OutputArea.trusted on Notebook.render_cell_output 2016-11-18 16:30:58 -08:00
Grant Nestor
dca820e845 Improve Notebook.render_cell_output 2016-11-18 09:29:29 -08:00
Matthias Bussonnier
02740a91ff Merge pull request #1907 from gnestor/master
Add `Notebook.render_cell_output` method
2016-11-18 08:46:00 -08:00
Min RK
5b70ab976e Merge pull request #1903 from minrk/allow-script-websockets
Allow websocket connections from scripts
2016-11-18 11:49:43 +01:00
Grant Nestor
6f929697f3 Add Notebook.render_cell_output method 2016-11-17 22:37:59 -08:00
Thomas Kluyver
e6fb7e65e9 Merge pull request #1650 from Carreau/predicatable-extensions
Load extension in predictable order.
2016-11-17 11:25:51 -08:00
Thomas Kluyver
6f32903e16 Merge pull request #1904 from minrk/json_errors_first
json_errors should be outermost decorator on API handlers
2016-11-17 11:18:05 -08:00
Min RK
fe86b65183 json_errors should be outermost decorator on API handlers
in order to apply to 403 raised by web.authenticated
2016-11-17 18:26:12 +01:00
Min RK
8d7e430b89 Allow websocket connections from scripts
scripts don't set origin on connection

we allow these connections on API requests, websockets should match.
2016-11-17 13:57:46 +01:00
Kyle Kelley
6df840e19d Merge pull request #1879 from minrk/display_data_update
support routing updating outputs with display_id
2016-11-16 16:42:27 -05:00
Kyle Kelley
389b0b0730 Merge pull request #1831 from minrk/server-token
enable token-authentication by default
2016-11-16 16:06:39 -05:00
Min RK
c0a6e41038 support display_id in execute_result
make update_display handling clearer and separate from regular display_data
2016-11-16 16:44:23 +01:00
Kyle Kelley
bdee765dd3 Merge pull request #1896 from gnestor/mime-json-suffix
Accept JSON output data with mime type "application/*+json"
2016-11-14 16:26:18 -08:00
Grant Nestor
8e0de400ae Accept JSON output data with mime type "application/*+json" 2016-11-14 15:32:36 -08:00
Kyle Kelley
363f71a8a2 Merge pull request #1895 from blink1073/kernel-spec-escape
Allow kernelspecs to have spaces in them for backward compat
2016-11-14 13:19:49 -08:00
Steven Silvester
781066a40e Update handler and test 2016-11-14 14:44:28 -06:00
Steven Silvester
8f5a67ad6d Allow kernelspecs to have spaces in them for backward compat 2016-11-14 14:05:35 -06:00
Kyle Kelley
a20c34433a Merge pull request #1891 from takluyver/i1589
Fix extending range selection down to markdown cell
2016-11-13 19:27:43 -08:00
Thomas Kluyver
3b4ec0d1cf Update ObviousCI download for Appveyor
As suggested at https://github.com/pelson/Obvious-CI/issues/68
2016-11-13 16:58:11 -08:00
Thomas Kluyver
78dc8a8c7a Fix extending range selection down to markdown cell
The 'moveanchor' argument was not getting passed down to the parent
class' select() method.

Closes gh-1589
2016-11-13 16:34:17 -08:00
Thomas Kluyver
89c6f9e631 Merge pull request #1838 from yuvipanda/xterm-2.0.1
terminal: Bump xterm.js to 2.0.1
2016-11-11 16:11:47 -08:00
YuviPanda
922c9c8d16 Bump xterm.js version to v2.1.0 2016-11-11 15:54:59 -08:00
YuviPanda
ae5f345d35 Remove deprecated xterm.js constructor params 2016-11-11 15:54:41 -08:00
Thomas Kluyver
2bbaaa5cde Merge pull request #1887 from jim22k/remove-old-nbserver-info
Fix bug when attempting to remove old nbserver info files
2016-11-11 09:29:06 -08:00