Commit Graph

10824 Commits

Author SHA1 Message Date
Thomas Kluyver
acbeaf80fe Try testing redirect without requesting target file 2018-03-22 20:01:02 +00:00
Thomas Kluyver
2a476148e3 Undo patches in teardown before attempting to delete files 2018-03-22 19:35:36 +00:00
Thomas Kluyver
a7ac957d7f Update changelog for 5.4.1 2018-03-18 08:38:07 +00:00
Thomas Kluyver
4e79ebb49a
Disable jQuery prefilter specifically to parse sanitized HTML (#29)
* Add and use sanitize_html_and_parse() function

* Describe return type in doc comment

* Reset htmlPrefilter even if parsing HTML fails

* Return directly from try block

* Move toinsert to inner scope
2018-03-18 08:00:12 +00:00
Thomas Kluyver
97dd1ed9f3
Merge pull request #3401 from minrk/activity_sources
add settings['activity_sources']
2018-03-16 19:09:22 +00:00
Min RK
bd23c0525c call it last_activity_times 2018-03-16 16:38:14 +01:00
Thomas Kluyver
449368877f
Merge pull request #3428 from takluyver/jquery-22
Update jQuery to version 2.2
2018-03-16 12:44:29 +00:00
Thomas Kluyver
276474afe5
Merge pull request #3411 from takluyver/notebooklist-back-to-start
Fix going back to root directory with history in notebook list
2018-03-15 14:52:53 +00:00
Thomas Kluyver
7fb0510f68
Merge pull request #3409 from takluyver/js-polish-notebooklist
Javascript lint in notebooklist.js
2018-03-15 14:52:41 +00:00
Thomas Kluyver
1b3b354602
Merge pull request #3430 from takluyver/appveyor-conda-fix
Trying to fix Appveyor build errors
2018-03-15 14:46:35 +00:00
Thomas Kluyver
14c9ec4a62 Use Python 3.6 version of Miniconda 2018-03-15 14:31:05 +00:00
Thomas Kluyver
281366759b Try skipping update conda step on Appveyor 2018-03-15 14:30:41 +00:00
Thomas Kluyver
62656c3556 Update jQuery to version 2.2 2018-03-15 12:09:07 +00:00
M Pacer
1f549fcce4 change dashboard test to click on links, go back, and check for contents 2018-03-09 11:58:33 -08:00
M Pacer
965970a17a creates selenium driver(session-scope) & authenticated_browser fixtures
Originally written by @takluyver while pair programming
2018-03-09 11:54:10 -08:00
Thomas Kluyver
0c28482de0 Fix going back to root directory with history in notebook list
Bug found during pair programming with @mpacer
2018-03-09 18:30:24 +00:00
Thomas Kluyver
e321c80776
Merge pull request #3341 from takluyver/csp-sandbox-files
Use CSP header to treat served files as belonging to a separate origin
2018-03-09 14:22:16 +00:00
Thomas Kluyver
694ed72fb4 Use content_security_policy property to add restriction when serving user files 2018-03-08 16:59:12 +00:00
Thomas Kluyver
e2ee7c6297 Javascript lint in notebooklist.js 2018-03-08 14:35:24 +00:00
Thomas Kluyver
c1c7d3df59
Merge pull request #3373 from forbxy/fix-file-upload
fix:when upload large file,we cant stop
2018-03-08 14:25:27 +00:00
bxy007
191be80e83 fix spell error 2018-03-08 07:38:47 +08:00
Thomas Kluyver
290e57428b
Merge pull request #3399 from minrk/hmac-deprecated
add missing digestmod arg to HMAC
2018-03-07 09:49:30 +00:00
Min RK
f0a96b5ffb add settings[‘activity_sources’]
for extensions to register activity that should prevent shutdown due to inactivity
2018-03-06 21:50:43 +01:00
Min RK
f16b073394 python2 requires digestmod to be the module
rather than the module name as str

and use `hmac.new` API from the docs, rather than undocumented class constructor
2018-03-06 00:26:58 +01:00
Min RK
934e480782 add missing digestmod='sha256' in cookie_secret
Noticed in test output that creating HMAC without digestmod arg is deprecated.

While there, use proper length of 32 bytes for default tornado cookie_secret. There’s no benefit to using a cookie secret that's longer that the cookie digest size, which is 32 bytes.
2018-03-06 00:26:58 +01:00
Min RK
ae1f167dc6
Merge pull request #3398 from minrk/tornado5
Get tests running with tornado 5
2018-03-06 00:26:43 +01:00
Min RK
f00215bc80
Merge pull request #3380 from takluyver/i3365
Don't clear login cookie on requests without cookie
2018-03-06 00:22:47 +01:00
Min RK
a9d2c17f74 install test dependencies with —pre
to get more warning about upcoming releases that might cause breakages
2018-03-05 23:11:23 +01:00
Min RK
f77e3435cf tornado 5 fixes in tests
- start asyncio loop explicitly in notebook thread (tornado 4 starts per-thread loops automatically, asyncio doesn’t)
- remove unsupported ‘io_loop=‘ arg in websocket test

application runs fine with tornado 5, just a few test bits needed updating
2018-03-05 23:10:56 +01:00
Min RK
95a8340063
Merge pull request #3367 from forbxy/master
fix error in i18n/README.md
2018-03-01 11:10:52 +01:00
Min RK
e9da502dd5
Merge pull request #3386 from ashleytqy/trusted-widget-edits
Adding description for 'Trusted' widgets
2018-03-01 11:09:06 +01:00
Ashley Teoh
978e16a12a whitespace 2018-02-28 22:11:04 -05:00
Ashley Teoh
078d3f5be6 add title attributes to widgets and disable clicking trusted button 2018-02-28 22:07:49 -05:00
Carol Willing
1b99df995b
Merge pull request #3384 from minrk/fail-to-write
log OSErrors failing to create less-critical files during startup
2018-02-28 09:26:28 -08:00
Min RK
6debb0ae1a log OSErrors failing to create less-critical files during startup
rather than fatal errors
2018-02-28 16:12:43 +01:00
Thomas Kluyver
61972480b9 Don't clear login cookie on requests without cookie
Clearing the secure cookie makes sense when it is invalid or expired,
but clearing it when it's not sent with a request can unexpectedly log
the user out.

I ran into this with misconstructed URLs which didn't incorporate
base_url. That was itself a bug, but the result of suddenly being
unauthenticated makes it harder to track down.

Closes gh-3365 (hopefully)
Possibly also relevant to gh-2396

I'm not sure why this seems to affect Firefox more than Chrome.
2018-02-27 13:33:12 +00:00
Min RK
a1fb317ec7
Merge pull request #3346 from whosford/notebook-public-server-docs-change
Add more information for where jupyter_notebook_config.py is located
2018-02-27 13:46:43 +01:00
Min RK
b66a60d028
Merge pull request #3356 from evandam/master
Display hostname when running remotely
2018-02-27 13:45:07 +01:00
Min RK
02d6cd55b3
Merge pull request #3368 from mpacer/api_improvements
API spec improvements, API handler improvements
2018-02-27 13:44:12 +01:00
Min RK
74e24299b4
Merge pull request #3377 from xuhdev/markdown-doc
Add explanation on how to change the type of a cell to Markdown.
2018-02-27 13:43:01 +01:00
Min RK
7ee844f3a4
Merge pull request #3379 from dhirschfeld/patch-1
Use powershell on Windows
2018-02-27 13:42:38 +01:00
Dave Hirschfeld
ce602fcb0d
Use powershell on Windows
sh can be installed and on the path if e.g. git and the unix tools are installed
Even in this case the user would probably prefer to use powershell
2018-02-27 17:14:53 +10:00
bxy007
eb9d2000bf fix i18n/README.md 2018-02-27 10:07:27 +08:00
Hong Xu
08231369c1 Add explanation on how to change the type of a cell to Markdown. 2018-02-26 11:27:12 -08:00
Thomas Kluyver
2aac713937
Merge pull request #3294 from takluyver/notebook-js-syntax-fixes
Some Javascript syntax fixes
2018-02-26 17:39:56 +00:00
Thomas Kluyver
07dc619d00
Merge pull request #3350 from Shels1909/nb_metadata_3095
Set notebook to dirty state after change to kernel metadata
2018-02-26 14:44:41 +00:00
Thomas Kluyver
dd7eab3957
Merge pull request #3360 from hroncok/nbsphinx-notexecute
Do not execute special notebooks with nbsphinx
2018-02-26 14:12:52 +00:00
Thomas Kluyver
6bed9cae7d
Merge pull request #3372 from vaibhavsagar/patch-1
Use latest codemirror
2018-02-26 11:38:24 +00:00
bxy007
4a3885d3e2 fix:when upload large file,we cant stop 2018-02-25 17:38:55 +08:00
Vaibhav Sagar
bf5bd5e11c
Use latest codemirror 2018-02-25 16:44:49 +08:00