Commit Graph

11234 Commits

Author SHA1 Message Date
Amy Skerry
3faafc4122 Migrate buffering test to selenium
As per issue #3335, we want all js tests migrated to selenium. This change migrates the test of buffered execution requests.

Test Plan:
py.test -v notebook/tests/selenium/test_buffering.py
2018-11-11 10:47:18 -08:00
Thomas Kluyver
c9378c71fe
Merge pull request #4146 from askerry/selenium_display_isolation
Migrate display isolation test to selenium
2018-11-08 11:42:11 +00:00
Thomas Kluyver
099383e012
Merge pull request #4141 from askerry/selenium_display_image
Migrate image display test to selenium
2018-11-08 11:40:26 +00:00
Amy Skerry
a5a6e4ad08 Address review feedback
- remove sleep hack cruft
- consolidate/remove unncessary intermediate variables
2018-11-07 20:35:26 -08:00
Amy Skerry
3ccc4ed207 Address review feedback
- use %r instead of %s to handle quoting more succintly
- add a finally block to ensure browser state is transitioned from iframe back to default content
2018-11-07 20:30:06 -08:00
Thomas Kluyver
2af744075f
Merge pull request #4103 from einon/einonm
Fix copy/paste-ability of default URL presented on startup
2018-11-07 15:13:57 +00:00
Thomas Kluyver
a036ba2cd8
Merge pull request #4142 from askerry/selenium_merge_cells
Migrate test for merge cells api to selenium
2018-11-07 12:37:43 +00:00
Thomas Kluyver
a7033b8067
Merge pull request #4139 from daf/fix-allow-remote-access-with-all-ips
Fix default value method for `allow_remote_access` when ip is '*'
2018-11-07 11:50:50 +00:00
Amy Skerry
aa658d3d79 Migrate display isolation test to selenium
As per issue #3335, we want all js tests migrated to selenium. This change migrates and extends the svg isolation test (extended to include slightly more thorough validation of expected isolation behavior).

Test Plan:
py.test -v notebook/tests/selenium/test_display_isolation.py
2018-10-26 10:19:40 -07:00
Amy Skerry
34cd3528d5 Migrate test for merge cells api to selenium
Migrates the test for merging cells to use selenium as suggested in issue #3335.

Test Plan:
py.test -v notebook/tests/selenium/test_merge_cells.py
2018-10-25 22:23:19 -07:00
Amy Skerry
03478bee87 Migrate image display test to selenium
Migrates a single js test (testing image display functionality) to selenium as per issue #3335.

Test Plan:
py.test -v notebook/tests/selenium/test_display_image.py
2018-10-25 21:42:51 -07:00
Dave Foster
1c40db2440 Fix default value method for allow_remote_access when ip is '*' 2018-10-25 09:36:01 -04:00
Mark Einon
f140ba95c4 Present both possible URL options as separate copy/pastable options
Currently the default URL message given on the console on startup is:

---
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
     http://(myip.com or 127.0.0.1):8888/?token=8fdc8 ...
---

This will always need editing to use. Replace with one host IP (e.g. 'myip.com')
option and one local ip (127.0.0.1) option to make it copy/pastable again.
2018-10-22 00:34:45 +01:00
Mark Einon
643b992690 Fix copy/paste-ability of default URL presented on startup
Currently the default URL message given on the console on startup is:

---
Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://(myip.com or 127.0.0.1):8888/?token=8fdc8 ...
---

This will always need editing to use. Replace with host IP (e.g. 'myip.com')
to make it copy/pastable again.
2018-10-22 00:34:45 +01:00
Matthias Bussonnier
04a686dbaf
Merge pull request #4074 from agatheliguori/master
Fixed french translation mistakes and normalized capitalization
2018-10-21 12:10:01 -07:00
Min RK
bbfa1cbe5a
Merge pull request #4122 from thomasaarholt/thomasaarholt-patch-1
Corrected alt-text of "replace in all cells"
2018-10-19 14:43:48 +02:00
Thomas Aarholt
9182f84cf0
Corrected alt-text of "replace in all cells" 2018-10-19 11:28:24 +02:00
Min RK
4f9a6cbdd8
Merge pull request #3664 from vit-tucek/unicode_home_dirs
properly handle unicode characters in home dirs
2018-10-18 13:45:35 +02:00
Min RK
9928105052
Merge pull request #4099 from michalc/contents_manager_exists_can_return_futures
Allow more contents manager functions to return futures
2018-10-18 10:25:24 +02:00
Michal Charemza
815ed3ce56
Allow more contents manager functions to return futures
This allows slower contents managers to not block the event loop by allowing
more of their API to return futures.

Other usages of contents manager functions are already wrapped in maybe_future,
including a use of `file_exists` in contents/handlers.py
2018-10-17 22:25:28 +01:00
Min RK
b663bf1b14
Merge pull request #4034 from Carreau/adaptation-log
When adapting also log the version jupyter_client is expecting.
2018-10-10 15:18:32 +02:00
Min RK
dab6046ba6
Merge pull request #4046 from Surya-06/master
update marked to 0.5
2018-10-10 15:16:22 +02:00
Min RK
d2916c9a81
Merge pull request #4073 from 1kastner/patch-1
Add info about messaging specs
2018-10-10 11:23:27 +02:00
Min RK
4135e3ffe7
Merge pull request #4063 from kevin-bates/log-status-type
Include status types when logging activity
2018-10-10 11:19:27 +02:00
Matthias Bussonnier
b71c05dc17
Merge pull request #4061 from kara71/fix-fr-translations
Fixed French translations in nbjs.po
2018-10-09 08:17:08 -07:00
agatheliguori
9c1309210c Fixed french translation mistakes and normalized capitalization 2018-10-07 19:13:10 +02:00
Mathis Hammel
6126f78381 Fixed two remaining wrong translations 2018-10-07 18:21:33 +02:00
1kastner
9b7312d330
Add info about messaging specs
I found it very useful to read https://jupyter-client.readthedocs.io/en/stable/messaging.html in order to understand what is happening here. What do you think?
2018-10-07 17:57:57 +02:00
Kevin Bates
23e74dcdfa Include status types when logging activity
Recently I needed to troubleshoot kernel responses and found it helpful
to distinguish status types (busy vs. idle) - thought others might find
it useful as well.

Entries that previously appeared as...
```
 activity on 33383dcc-c054-4dc0-b842-16063ea160fe: status
 activity on 33383dcc-c054-4dc0-b842-16063ea160fe: status
 activity on 33383dcc-c054-4dc0-b842-16063ea160fe: status
 activity on 33383dcc-c054-4dc0-b842-16063ea160fe: status
 activity on 33383dcc-c054-4dc0-b842-16063ea160fe: execute_input
 activity on 33383dcc-c054-4dc0-b842-16063ea160fe: display_data
 activity on 33383dcc-c054-4dc0-b842-16063ea160fe: execute_result
 activity on 33383dcc-c054-4dc0-b842-16063ea160fe: status
```
will now appear as...
```
 activity on 33383dcc-c054-4dc0-b842-16063ea160fe: status (idle)
 activity on 33383dcc-c054-4dc0-b842-16063ea160fe: status (busy)
 activity on 33383dcc-c054-4dc0-b842-16063ea160fe: status (idle)
 activity on 33383dcc-c054-4dc0-b842-16063ea160fe: status (busy)
 activity on 33383dcc-c054-4dc0-b842-16063ea160fe: execute_input
 activity on 33383dcc-c054-4dc0-b842-16063ea160fe: display_data
 activity on 33383dcc-c054-4dc0-b842-16063ea160fe: execute_result
 activity on 33383dcc-c054-4dc0-b842-16063ea160fe: status (idle)
```
2018-10-04 08:35:48 -07:00
Mathis Hammel
74f08b897c Fixed some translations 2018-10-04 01:17:11 +02:00
Steven Silvester
c2a2bcc4a7
Merge pull request #4041 from arradha/fix/mathjax-codeblocks
Disable math jax inside fenced code blocks (closes #4037)
2018-10-02 04:52:58 -04:00
Steven Silvester
dfcea5b3f7
Merge pull request #4036 from Hyaxia/metrics_terminal
Added metrics for currently running terminals and labeled by type kernels
2018-10-02 04:51:13 -04:00
Steven Silvester
fa7b40be27
Merge pull request #4039 from Carreau/try-fix-attr
try to fix tests
2018-10-02 04:49:38 -04:00
Maxim Vov
4c1d62f3b2 A temporary fix for appveyor tests problem that results in an error:
`RequirementParseError(str(e)) pip._vendor.pkg_resources.RequirementParseError: Invalid requirement, parse error at “’; extra '`
2018-09-30 21:57:38 +03:00
Surya Prakash Susarla
c5d1a08951
Updated .travis.yml for fixing attr
Changed attr value of travis tests to fix the failing tests in PR.
2018-09-29 21:28:25 +05:30
Maxim Vov
f2fdbf929e Added metrics for number of kernels running labeled by type 2018-09-29 16:56:40 +03:00
Surya Prakash Susarla
23114ef44a Changed marked version to 0.5
Changed marked version to 0.5 August release for fixing rendering bugs.
2018-09-27 21:25:24 +05:30
Arjun Radhakrishna
7eb6e29509 Fix spurious newline in expected result 2018-09-26 17:02:06 -07:00
Arjun Radhakrishna
4395a838f6 From #4039: Fix test by pinning attrs to 17.4+ 2018-09-26 16:41:25 -07:00
Maxim Vov
e951fab0db Added docs to the prometheus package and the terminal.api_handlers file. 2018-09-27 01:55:52 +03:00
Arjun Radhakrishna
6fd0a80778 Reformat long string 2018-09-26 15:42:59 -07:00
Arjun Radhakrishna
c5bee3a29d test and fix: disable math inside code blocks 2018-09-26 15:34:56 -07:00
Matthias Bussonnier
96cb061e7b
More descriptive message. 2018-09-26 11:46:14 -07:00
Matthias Bussonnier
02abe9e691 Fix test by pinning attrs to 17.4+ 2018-09-26 11:36:31 -07:00
Matthias Bussonnier
7d211d431e try to fix test 2018-09-26 11:01:32 -07:00
Maxim Vov
7bc7df472c Fixed imports, from static to dynamic. 2018-09-26 18:14:43 +03:00
Maxim Vov
03e5dc00e1 Moved the 'metrics' file to a new package named 'promethues'.
Then split the file into two files, one containing the metrics themselves, the other containing any function that have something to do with prometheus.

Finally, Added new metrics into the prometheus.metrics file that represent the number of running terminals and added the functionality for that metric to be recorded in the terminal.api_handlers file.
2018-09-26 17:15:40 +03:00
Min RK
5711075f0b
Merge pull request #3789 from munkm/pytest
modify contributing instructions to use pytest for testing
2018-09-26 15:26:57 +02:00
Matthias Bussonnier
7e140c5baf When adapting also log the version jupyter_client is expecting.
It's still (IMHO) unclear how the adaptation goes. Like does "adapting
to protocol X.Y.Z." mean the end-result is X.Y.Z or what you
got is X.Y.Z and it's X.Y.W after adaptation.
2018-09-25 20:52:21 -07:00
Steven Silvester
26ec5952a7
Merge pull request #3926 from Carreau/drop-27
Drop 2.7
2018-09-25 06:54:11 -05:00