Commit Graph

11322 Commits

Author SHA1 Message Date
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
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
Thomas Kluyver
0227bc97ed
Merge pull request #4317 from wgcostello/patch-1
Fix typo in introduction
2019-01-08 16:48:06 +00:00
Thomas Kluyver
09b8c934b4
Merge pull request #4310 from takluyver/selenium-multiselect
Convert multiselect test to Selenium
2019-01-08 16:47:30 +00:00
Maxime Mouchet
1566dd1712 List hidden files if allowed (#3812) 2019-01-08 13:42:57 +01:00
Roman Kornev
18ca0330d8 Update document.title to a more descriptive name 2019-01-06 04:17:04 +03:00
Will Costello
5f8a2040ff
Fix typo in introduction 2019-01-05 20:16:05 +00:00
Thomas Kluyver
9035cb1bdd Limit to tornado <6 for now
Tornado 6.0a1 is causing test failures in CI
2019-01-02 12:33:50 +00:00
Thomas Kluyver
a5ad463427 Remove multiselect Javascript test converted to Selenium 2019-01-02 11:58:16 +00:00
Thomas Kluyver
605dfb8b15 Convert multiselect test to Selenium 2019-01-02 11:57:41 +00:00
Min RK
31c2184d01
Merge pull request #4287 from choldgraf/ntbkext
updating file tree in "extending notebook" section
2018-12-17 14:47:10 +01:00
Thomas Kluyver
f24fa85ef8
Merge pull request #4286 from takluyver/changelog-5.7.4
Add release notes for 5.7.4
2018-12-17 10:22:56 +01:00
Chris Holdgraf
29f58de211 updating file tree 2018-12-16 18:43:38 -08:00
Thomas Kluyver
a4d663b578 Add release notes for 5.7.4 2018-12-16 22:52:01 +01:00
Thomas Kluyver
cf1b7b3628
Merge pull request #4284 from takluyver/i4283
More selective filename test in list_running_servers
2018-12-16 22:33:46 +01:00
Thomas Kluyver
adcb7025ca Make filename check in list_running_servers more specific
Closes gh-4283
2018-12-16 21:06:55 +01:00
Thomas Kluyver
6896aacdf6 Add failing test for list_running_servers 2018-12-16 21:06:36 +01:00
Thomas Kluyver
55d6f53570
Merge pull request #4278 from takluyver/changelog-5.7.3
Write release notes for 5.7.3
2018-12-16 09:57:28 +01:00
Thomas Kluyver
35aa99324a Write release notes for 5.7.3 2018-12-16 09:50:27 +01:00
Thomas Kluyver
46a887f6e0
Merge pull request #4271 from minrk/bs34
bootstrap 3.4
2018-12-14 17:10:51 +01:00
Min RK
363d73d145 bootstrap 3.4
and switch from components/ to canonical bootstrap repo, which puts bootstrap.min.js into a `dist` subdir.

components hasn't received the 3.4 update
2018-12-14 11:58:52 +01:00
Min RK
68ec51d3db
Merge pull request #4257 from ctrlaltdelete00/MarkdownDocumentationBackslashEscapes
Add Documentation regarding backslash escaping in Markdown File
2018-12-14 10:59:14 +01:00
Min RK
51dae23b59
Merge pull request #4260 from takluyver/browser-open-file
Launch the browser with a redirect file
2018-12-13 10:31:11 +01:00
Thomas Kluyver
56d7a2d3a6 Remove one-time token code 2018-12-12 15:22:06 +00:00
Thomas Kluyver
92362103e3 Point to file in terminal message 2018-12-11 16:05:16 +00:00