Commit Graph

11314 Commits

Author SHA1 Message Date
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
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
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
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
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
Thomas Kluyver
28e296fc9f Use permanent token in redirect file 2018-12-11 15:57:02 +00:00
Thomas Kluyver
270c0f96d7 Launch the browser with a redirect file
This avoids putting the authentication token into a command-line
argument to launch the browser, where it's visible to other users.
Filesystem permissions should ensure that only the user who started the
notebook can use this route to authenticate.
Thanks to Dr Owain Kenway for suggesting this technique.
2018-12-11 13:20:46 +00:00
Tim Porath
48042adaf9 Add Documentation regarding backslash escaping in Markdown File 2018-12-09 18:42:30 -05:00
Min RK
f759e4d3be
Merge pull request #4248 from christek91/optimize-large-file-uploads
Optimize large file uploads
2018-12-06 00:15:06 +01:00
Chris Miller
daa80ad4ac Tune chunk size for large file uploads to be larger for perf gains. 2018-12-03 19:04:12 -05:00
Chris Miller
7a42187ccd Optimize Base64 encoding of large files to be uploaded to avoid GC pauses. 2018-12-03 19:03:27 -05:00
Min RK
82782a370e
Merge pull request #4084 from bhansa/issues-4000-accessibility
improved color contrast for file menus
2018-12-03 13:26:06 +01:00
Min RK
069465bf95
Merge pull request #4236 from steaward/issue-4230
Fix ui-icons from blocking tooltip text
2018-11-29 17:01:41 +01:00