Commit Graph

11404 Commits

Author SHA1 Message Date
Min RK
0b73ab600a changelog for 5.7.5 [ci skip] 2019-03-06 10:38:51 +01:00
Min RK
ff238cc762
Merge pull request #4147 from jakelevirne/master
Updated the description of Heading cells, which are no longer used
2019-03-06 10:28:50 +01:00
Min RK
73a7630517
there are four lights [ci skip] 2019-03-06 10:28:41 +01:00
Min RK
d4e60d975d oops, no Python 2 on master 2019-03-05 14:36:30 +01:00
Min RK
be35a370ce gateway: compatibility with tornado 4
HTTPTimeoutError is new in tornado 5.1
2019-03-05 14:28:55 +01:00
Min RK
71e185316b add test entries for tornado 4 2019-03-05 14:16:12 +01:00
Min RK
aa4ffe3f4b test with stable Python 3.7
instead of out-of-date dev version
2019-03-05 14:16:02 +01:00
Min RK
dcee710154 patch gen.maybe_future for compatibility with tornado 6
tornado gen.maybe_future is deprecated in >= 5.0 and doesn't accept asyncio coroutine objects or awaitables in general
causing failures with tornado 6 on asyncio

monkeypatch gen.maybe_future for easier backport to 5.x

later, we can update to use our maybe_future throughout
2019-03-05 14:03:34 +01:00
Min RK
5828300401 fix check for closed connection
stream is None in tornado 6
2019-03-05 14:01:08 +01:00
Min RK
51eb86f6a0
Merge pull request #4426 from fchapoton/patch-1
remove unused import of os
2019-03-05 13:35:45 +01:00
Min RK
b1bd4e5983 pip freeze on tornado
for debugging test env
2019-03-05 12:27:53 +01:00
Min RK
57122409b2 unpin tornado
to get testing 6.0 again
2019-03-05 12:18:45 +01:00
Emilio Talamante Lugo
b892d7c8c6 Converted shutdown.js test to selenium python test 2019-03-04 00:23:02 -07:00
Min RK
490b8fd3ef trigger _ws_closed on any close event
it doesn’t matter if the close was clean or not,
we should still handle the close event.

we set a different onclose handler prior to the client requesting close,
which is likely what the old wasClean checks were for
2019-03-02 12:19:03 +01:00
Kevin Bates
46bcf78d63 Update gateway support with recent changes
Convey notebook working directory to the gateway (nb2kg pr-21)
Support retrieval of kernelspec resources from the gateway (nb2kg pr-23)
2019-02-26 14:58:50 -08:00
Frédéric Chapoton
9f59b7feb3
remove unused import of os
found by lgtm
2019-02-25 21:18:52 +01:00
Min RK
d145301b55
Merge pull request #4112 from dmikushin/master
Enable login mode for terminal - to automatically source the /etc/profile script
2019-02-25 10:46:20 +01:00
Min RK
6a96754208
Merge pull request #4355 from EvgeniDubov/fix_notebook_file_extension_case
Fix case sensitive notebook file extension
2019-02-25 10:45:20 +01:00
Min RK
4978373174
Merge pull request #4130 from SpencerPark/markdown-table-alignment
Default to right table alignment but allow table local overrides
2019-02-25 10:44:17 +01:00
Min RK
f4183bb612
Merge pull request #4275 from steaward/issue-4270
remove multiple download links for the #download_ipynb click
2019-02-25 10:42:52 +01:00
Min RK
eea02c2c5f
Merge pull request #4213 from aayusharyan/patch-1
Add padding bottom for symmetry of the Notebook
2019-02-25 10:42:12 +01:00
Min RK
b4328ea7ee move rtl fixes to page.less from custom.css
custom.css should always be empty since it will be overridden
2019-02-25 10:40:06 +01:00
Min RK
6d15e9cdab
Merge pull request #4328 from maxmouchet/list_hidden_files
List hidden files if allowed
2019-02-25 10:30:57 +01:00
Min RK
0e28875a1c
Merge pull request #4392 from takluyver/tornado-6-ws-coroutine
Call tornado WebSocketHandler.get() as a coroutine
2019-02-25 10:30:18 +01:00
Min RK
bba82ca3bd
Merge pull request #4412 from kevin-bates/async-startup
Enable restart_kernel for async usage
2019-02-25 10:29:50 +01:00
Min RK
46ee18b23f
Merge pull request #4376 from mpacer/update_json_configd
surface config.d nbserver_extensions to the NotebookApp config object
2019-02-25 10:29:04 +01:00
Min RK
906406aeb0
Merge pull request #4161 from kevin-bates/embed-nb2kg
Embed NB2KG into Notebook server
2019-02-25 10:15:56 +01:00
Kevin Bates
2c526fb60b Enable restart_kernel for async usage
Converted `MappingKernelManager.restart_kernel` to a coroutine so that
projects that take advantage of async kernel startup can also realize
appropriate behavior relative to restarts.
2019-02-19 09:01:50 -08:00
Thomas Kluyver
132f273065
Merge pull request #4377 from takluyver/selenium-test-save
Convert test of saving with complex name to Selenium
2019-02-14 12:11:00 +00:00
Kevin Bates
acba19033b Minimize handlers and manager methods
Eliminated the Kernel and Kernelspec handlers.  The Websocket (ZMQ)
channels handler still remains.  This required turning a few methods
into coroutines in the Notebook server.

Renamed the Gateway config object to GatewayClient in case we want
to extend NB server (probably jupyter_server at that point) with
Gateway server functionality - so an NB server could be a Gateway
client or a server depending on launch settings.

Add code to _replace_ the channels handler rather than rely on position
within the handlers lists.

Updated mock-gateway to return the appropriate form of results.

Updated the session manager tests to use a sync ioloop to call the
now async manager methods.
2019-02-08 12:09:42 -08:00
Kevin Bates
f74ef2f691 Move environment variables to SingletonConfigurable
Created a singleton class `Gateway` to store all configuration options
for a Gateway.  This class also holds some help methods to make it easier
to use the options and determine if the gateway option is enabled.

Updated the NotebookTestBase class to allow for subclasses to infuence
the patched environment as well as command line options via argv.

Added a test to ensure various gateway configuration items can be
set via the environment or command-line.
2019-02-08 12:09:42 -08:00
Kevin Bates
060a2b9aea Embed NB2KG into Notebook server
This change alleviates a significant pain-point for consumers of Jupyter
Kernel and Enterprise Gateway projects by embedding the few classes defined
in the NB2KG server extension directly into the Notebook server.  All code
resides in a separate gateway directory and the 'extension' is enabled
via a new configuration option `--gateway-url`.

Renamed classes from those used in standard NB2KG code so that Notebook
servers using the existing NB2KG extension will still work.

Added test_gateway.py to exercise overridden methods.  It does this by
mocking the call that issues requests to the gateway server.

Updated the _Running a notebook server_ topic to include a description
of this feature.
2019-02-08 12:09:42 -08:00
Thomas Kluyver
7c8db2d063 Call tornado WebSocketHandler.get() as a coroutine
This change will probably be needed for Tornado 6. Ben Darnell figured it out.
https://groups.google.com/d/msg/python-tornado/mSeG7Kc6z4o/baeTDOvJGgAJ
2019-02-08 17:56:22 +00:00
Thomas Kluyver
8a4cbd0ad9
Merge pull request #4318 from RomanKornev/upd-document-title
Update document.title to a more descriptive name
2019-01-31 14:06:33 +00:00
Thomas Kluyver
bc3a8cbe79 Convert test for saving with complex name to Selenium 2019-01-31 11:49:06 +00:00
Thomas Kluyver
e00a86c4cb Throw clearer error if no new window handles found 2019-01-31 11:48:10 +00:00
Thomas Kluyver
df8a548012 Some improvements to promise handling when saving notebook 2019-01-31 11:47:45 +00:00
M Pacer
134c8b6c03 surface config.d nbserver_extensions to the NotebookApp config object
- separates nbserver_extension config loading into new 
init_server_extension_config method 
- adds init_server_extension_config to the initialize funciton before 
the init_webapp call
- adds nbserver_extension configuration found in config.d files (by the 
BaseJSONConfigLoader) to both the underlying NotebookApp config object 
and the self.nbserver_extensions value
- makes self.nbserver_extensions the canonical location for identifying 
all nbserver_extensions rather than temporary extensions variable
2019-01-30 16:10:30 -08:00
Roman Kornev
d3ce20738c Update text editor document.title 2019-01-30 20:42:46 +03:00
Thomas Kluyver
c33130dcbb
Merge pull request #4367 from nyanshell/master
fix incorrect Chinese translation
2019-01-30 16:57:04 +00:00
Thomas Kluyver
3bce5683c4
Merge pull request #4374 from mlucool/patch-1
Improve comms.rst example
2019-01-30 16:56:14 +00:00
Marc Udoff
e8163d57cc
Update js for comms for copy/paste 2019-01-29 19:39:36 -05:00
Marc Udoff
c740397e49
Improve comms.rst example
This improves the example by making it more copy/pastable out of the box and demoing how you can send a message at various places. It also fixes a poor usage of shadowed variables
2019-01-29 19:04:14 -05:00
Gestalt LUR
2c313e96f8
fix incorrect Chinese translation 2019-01-25 22:47:59 +08:00
edubov
56d4f2c3fc changing file name to lower case before checking if file extension is ipynb 2019-01-20 13:35:13 +02:00
Maxime Mouchet
533e1984e2 Merge branch 'master' of https://github.com/jupyter/notebook into list_hidden_files 2019-01-09 14:19:30 +01:00
Maxime Mouchet
48915c0ad7 Split logic 2019-01-09 14:18:34 +01:00
Thomas Kluyver
7ded638357
Merge pull request #4329 from takluyver/travis-newer-pytest
Upgrade pytest on Travis
2019-01-09 10:03:29 +00:00
Thomas Kluyver
e2ba8280c6 Upgrade pytest for docs build as well 2019-01-09 09:45:35 +00:00
Thomas Kluyver
fc532aac6f Upgrade pytest on Travis
Avoid incompatibility with newer pytest-cov version
2019-01-08 17:10:34 +00:00