Commit Graph

11305 Commits

Author SHA1 Message Date
Min RK
f81ec30b62
Merge pull request #3829 from mociarain/fix-tornado-settings
Fix tornado max_body_size & max_buffer_size settings
2018-09-13 16:36:54 +02:00
Min RK
0da9648ed3
Merge pull request #3905 from KGHustad/breadcrumb-root-url-fix
Prefix base URL to breadcrumb root URL
2018-09-13 16:23:42 +02:00
Min RK
4650dabd05
Merge pull request #3871 from parente/fix/shortcut-editor-enter
Fix Enter causes page reload in shortcuts editor
2018-09-13 16:23:00 +02:00
Min RK
9c60369a17
Merge pull request #3836 from cmd-ntrf/jqueryui
Update to jQuery UI 1.12
2018-09-13 16:22:44 +02:00
Min RK
bee2c389ca
Merge pull request #3883 from moble/public_server_csp
Describe problems and solutions involving CSP headers
2018-09-13 16:22:14 +02:00
Min RK
075acdff80
Merge pull request #3908 from MichaelChirico/patch-1
remove vestigial lines from documentation
2018-09-13 16:19:24 +02:00
Michael Chirico
ffb486453f
remove vestigial lines from documentation
Found here:
2018-09-12 17:37:14 +08:00
Kevin Bates
2d688f2071 Prevent access through 'NoneType' when closing activity_stream
Although I'm unable to reproduce the issue, its a safe change to
prevent an AttributeError from occuring ('NoneType' object has no
attribute 'close').  The user that reported this is attempting to
launch a kernel and I believe the launch only partially completed
such that `kernel._activity_stream` did not get established.
(This occurred from Jupyter Enterprise Gateway where we deal with remote
kernel launches across resource-managed clusters, so things are a bit
more involved relative to kernel establishment.)
2018-09-11 11:08:57 -07:00
Kristian Gregorius Hustad
076acf6a98 Prefix base URL to breadcrumb root URL
The base URL was only prefixed to the breadcrumbs following the root.
See https://github.com/jupyterhub/jupyterhub/issues/2137 for problem
description.
2018-09-10 23:41:38 +02:00
Min RK
872a6c7b9b
Merge pull request #3886 from rwmajor2/add_access_control_hdr_config
Allow access control headers to be overriden in jupyter_notebook_conf…
2018-09-07 17:25:57 +02:00
Min RK
0abc8220a0
Merge pull request #3816 from Kilo59/master
Fix f string syntax highlighting
2018-09-07 17:25:14 +02:00
Min RK
6c0ee1ba12
Merge pull request #3879 from starcruiseromega/exporters
Get the list of exporters from entrypoints
2018-09-07 17:24:57 +02:00
Jocelyn Delalande
cc97e8fe90 French translation: reword "point de sauvegarde" → "sauvegarde"
- Improves understanding (French contains « Sauvegarder » and « Enregistrer »,
which have different meaning, let's take advantage of that).
- Fix layout (too long sentences were breaking CSS layout in some cases)
2018-08-30 16:26:34 +02:00
Jocelyn Delalande
6ee41dadc4 Add French translation
100% of current .pot strings are translated
2018-08-29 19:20:55 +02:00
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