Commit Graph

11341 Commits

Author SHA1 Message Date
Bill Major
cc5e08d1bc Allow access control headers to be overriden in jupyter_notebook_config.py 2018-08-28 15:42:15 -04:00
Michael Boyle
88d5fc8e5f
Describe problems and solutions involving CSP headers 2018-08-27 12:37:57 -04:00
Sally Wilsak
c258d3fa79 Get the list of exporters from entrypoints
`exporter_map` is deprecated, so let's use the list of exporters fetched
from the installed entrypoints.

There's a supposed attribute `export_from_notebook` that should be set
to a friendly string name if the exporter should be exposed in the
front-end. However, the exporters defined in `nbconvert` don't have it
set, so I haven't used it to determine inclusion in the list. Instead,
I've used the entrypoint name as the friendly name, which looks like it
was the intention from the way they are named.

I ran the unit tests and tried starting up the notebook server and
accessing the API endpoint to verify the JSON looked correct.
2018-08-25 15:47:51 -04:00
Peter Parente
109b39e2b6 Prevent page reload on Enter 2018-08-21 21:25:49 -04:00
Steven Silvester
98085dcb84
Merge pull request #3744 from PraneetMokkapati/master
Disabled Tags and Slide Types for non editable cells
2018-08-13 06:22:32 -05:00
Steven Silvester
34baae5678
Merge pull request #3759 from minrk/flush-iopub
flush iopub before sending restarting/dead status messages
2018-08-13 06:21:19 -05:00
Steven Silvester
eed1caf32a
Merge pull request #3809 from minrk/ipaddress-unicode-py2
ip_address only accepts unicode on Python 2
2018-08-13 06:20:54 -05:00
Félix-Antoine Fortin
c9bd0fa87a Update jquery-ui.min path in page.html template 2018-08-09 10:52:52 -04:00
Félix-Antoine Fortin
6699ca5c73 Update jquery-ui minified path in setupbase.py 2018-08-09 09:58:16 -04:00
Félix-Antoine Fortin
f33066338a Update jquery-ui minified path in build-main.js 2018-08-09 09:28:25 -04:00
Dave Aitken
4bfda5074d
Return output prompt to width of input prompt after #3772 2018-08-09 10:04:30 +01:00
Félix-Antoine Fortin
c825a92963 Update to jQuery UI 1.12 2018-08-08 18:24:31 -04:00
Maitiu O Ciarain
0827dcb0b5 Fix quotes and tidy up the help messages 2018-08-07 10:52:35 +01:00
Maitiu O Ciarain
090f9c2314 Correctly pass them to the underlying tornado server 2018-08-07 09:26:12 +01:00
Maitiu O Ciarain
a37404f6b9 Make the max_body_size & max_buffer_size configurable 2018-08-07 09:25:00 +01:00
Gabriel
268332dde2
update codemirror component to 5.37
This should fix f string syntax highlighting 
https://github.com/jupyter/notebook/issues/2037
2018-08-02 14:12:43 -04:00
Min RK
b94cc449db
Merge pull request #3712 from forbxy/master
fix:can't choose same file twice when in upload file
2018-08-01 13:11:44 +02:00
Min RK
237a31060e
Merge pull request #3784 from gnestor/inline-run-button
Fix uneven input prompt width for markdown cells
2018-08-01 13:01:38 +02:00
Min RK
e33a16f42f use localhost as default local hostname
so this list isn't empty when these handlers are used outside NotebookApp
2018-07-31 14:02:12 +02:00
Min RK
1901eeac63 ip_address only accepts unicode on Python 2
ipaddress.ip_address('127.0.0.1') fails with ValueError on Python 2

need to decode it, otherwise 127.0.0.1 won't be treated as local
2018-07-31 13:51:24 +02:00
Matthias Bussonnier
593bd40895
Merge pull request #3806 from aaronchall/patch-2
indent code block
2018-07-30 16:54:23 -07:00
Aaron Hall, MBA
b644d7ee40
indent code block 2018-07-30 12:49:34 -04:00
Min RK
ceaf1c1158
Merge pull request #3778 from beledouxdenis/master-get_secure_cookie_options
[FIX] notebookapp, auth: `get_secure_cookie` kwargs
2018-07-30 10:09:34 +02:00
Min RK
1d17c796d0
Merge pull request #3799 from aaronchall/patch-1
Fill in Checkpoints section
2018-07-30 10:04:27 +02:00
Thomas Kluyver
f5a34179dc
Merge pull request #3800 from Xctrunner/master
fixing grammatical errors and typos
2018-07-27 16:43:37 +01:00
Aaron Hall, MBA
251c9e7dc8
Fill in Checkpoints section
(I think it needs more complete examples like ContentsManager has regarding what is returned by these methods.)
2018-07-26 13:51:58 -04:00
Walter Martin
ecc4d26f1d fixing grammatical errors and typos 2018-07-24 21:01:51 -04:00
Madicken Munk
f9d578ee40 add pytest to test env requirements and suggest it in contributing docs 2018-07-20 16:52:21 -05:00
Grant Nestor
75d2744eb4 Fix uneven input prompt width for markdown cells 2018-07-19 07:50:20 -07:00
Thomas Kluyver
d129f78fa0
Merge pull request #3777 from gnestor/mathjax-target
Use official mathjax package vs. components-mathjax
2018-07-19 09:52:59 +02:00
Thomas Kluyver
d61cd6eaa7
Merge pull request #3776 from gnestor/inline-run-button
Update styles for inline run button
2018-07-19 09:41:44 +02:00
Denis Ledoux
3729dd02ac [FIX] notebookapp, auth: get_secure_cookie kwargs
Per Tornado's documentation:

>By default, Tornado’s secure cookies expire after 30 days.
>To change this, use the expires_days keyword argument to
>set_secure_cookie and the max_age_days argument to get_secure_cookie.
>These two values are passed separately so that you may
>e.g. have a cookie that is valid for 30 days for most purposes,
>but for certain sensitive actions
>(such as changing billing information)
>you use a smaller max_age_days when reading the cookie.

With the current implementation in `auth/login.py`,
this is possible to pass the `expires_days` option
but not possible to enforce it as this is not possible
to pass `max_age_days` to `get_secure_cookie`

This makes impossible to set the cookie expiration without
using a custom `LoginHandler`.

This revision is about adding the possibility to pass options
to Tornado's `get_secure_cookie` method,
so it can be possible to set the cookies expiration,
among others.
2018-07-19 09:36:36 +02:00
Grant Nestor
43bd70b246 Fix uneven input prompt width 2018-07-18 21:38:16 -07:00
Min RK
a53d2c8489 flush iopub before sending restarting/dead status messages
to ensure (approximately) that all messages from the stopped kernel are delivered before the dead/restarting message
2018-07-18 14:00:44 -07:00
Grant Nestor
3a2690fc35 Use official mathjax package vs. components-mathjax 2018-07-17 13:39:23 -07:00
Grant Nestor
3c4bc0ef62 Display inline run button on same line as input prompt 2018-07-17 12:34:31 -07:00
Grant Nestor
f54e4355e8 Only display inline run button on mobile 2018-07-17 12:33:48 -07:00
Thomas Kluyver
a71a822de2
Merge pull request #3767 from takluyver/reenable-host-check
Re-enable Host header check after 5.6
2018-07-16 21:39:34 +02:00
M Pacer
be16b9540f
Merge pull request #3768 from munkm/testing
adding selenium to test requirements
2018-07-15 10:51:27 -05:00
Thomas Kluyver
0300f7341d Work around Mac's scoped link-local address for localhost 2018-07-15 09:13:26 +02:00
Madicken Munk
f2499f3713 adding selenium to test requirements 2018-07-14 11:09:39 -05:00
Thomas Kluyver
2bb4252f21 Re-enable Host header check after 5.6 2018-07-14 14:06:20 +02:00
Thomas Kluyver
2dd46b16c9 back to development 2018-07-14 13:43:16 +02:00
Thomas Kluyver
7674331e3d release 5.6.0 2018-07-14 13:36:19 +02:00
Thomas Kluyver
86e6f7954c
Merge pull request #3766 from takluyver/disable-host-check
Disable the host check for 5.6 because of gh-3754
2018-07-14 13:15:28 +02:00
Thomas Kluyver
a0503629ba Disable the host check for 5.6 because of gh-3754 2018-07-14 10:52:51 +02:00
Min RK
ebc60bc22e
Merge pull request #3752 from takluyver/changelog-56-b
Update changelog with recent changes merged
2018-07-13 11:43:13 -05:00
Thomas Kluyver
2c562e8587 Update changelog with recent changes merged 2018-07-12 11:06:13 +02:00
Thomas Kluyver
2ff28491f3
Merge pull request #3751 from gnestor/upgrade-mathjax
Upgrade mathjax
2018-07-12 10:39:06 +02:00
Grant Nestor
621a1cd83a Ignore package-lock.json 2018-07-11 22:06:50 -07:00