Commit Graph

9699 Commits

Author SHA1 Message Date
Min RK
f7b85b0999 include jupyter notebook password entrypoint in secure notebook docs 2017-01-03 15:27:02 +01:00
Min RK
f871d64e6e exercise password app 2017-01-03 15:15:44 +01:00
Min RK
53f809d407 use a warning for failure to set file permissions
instead of print
2017-01-03 14:50:56 +01:00
Min RK
cd7e0a939c add jupyter notebook password entrypoint
records, hashes, and stores password in json config
2016-12-22 13:43:05 +01:00
Min RK
645f0f9dad Merge pull request #2004 from gnestor/codemirror-5.16
Downgrade to CodeMirror 5.16
2016-12-21 22:03:43 +01:00
Grant Nestor
e03ab77460 Downgrade to CodeMirror 5.16
Closes https://github.com/jupyter/notebook/issues/1967
2016-12-21 12:52:06 -08:00
Min RK
62347f9842 Merge pull request #2003 from gnestor/4.3.1
Add 4.3.1 to changelog
2016-12-21 21:08:26 +01:00
Grant Nestor
2113b461de Add 4.3.1 to changelog 2016-12-21 11:43:43 -08:00
Thomas Kluyver
1216b83e35 Merge pull request #2002 from srinivasreddy/928
rename log.warn to log.warning as log.warn is deprecated
2016-12-21 18:15:32 +00:00
Srinivas Reddy Thatiparthy
161c174a98
rename log.warn to log.warning as log.warn is deprecated 2016-12-21 21:53:36 +05:30
Min RK
374db739ad Merge pull request #1965 from mgeier/proper-attachment-url
Use attachment:path instead of attachment://path
2016-12-21 14:42:57 +01:00
Min RK
d3b5e15bb4 Merge pull request #1994 from minrk/more-token-log-no-browser
Further highlight token info in log output
2016-12-21 08:56:41 +01:00
Min RK
cbeec7ae9a Add note about cookie requirement 2016-12-20 15:36:46 +01:00
Min RK
3760525783 Only log generated tokens in URLs
if token came from config, assume user knows what it is
or it's handled some other way.
2016-12-20 15:35:38 +01:00
Min RK
65cb6cc185 Only show token info if tokens are available
on login page
2016-12-20 15:28:23 +01:00
Min RK
fb8f730c6e Merge pull request #1985 from jasongrout/checkresize
Ignore resize events that bubbled up and didn't come from window.
2016-12-19 15:35:14 +01:00
Min RK
9c79e3163d Merge pull request #1993 from minrk/wait-for-output
add missing waits for output in display_id tests
2016-12-19 15:34:44 +01:00
Min RK
faf60320dd Further highlight token info in log output
add critical-level log statement at the end of startup with token info
2016-12-19 15:16:29 +01:00
Jason Grout
935af43582 handle window sizing even when it is not from a resize event. 2016-12-19 09:15:31 -05:00
Min RK
3c0da28764 add missing waits for output in display_id tests 2016-12-19 14:39:40 +01:00
Jason Grout
e909afc93a Due to jQuery propagating events, the window resize event could be triggered by a bubbled event.
See https://bugs.jquery.com/ticket/9841. In our case, the OutputArea was triggering a ‘resize’ event on its element, which was bubbling up and causing this handler to execute every time an output was appended. This was a pretty big drain on output areas that quickly changed (like for interact widgets), presumably since this function involves a DOM read to get heights.
2016-12-17 21:06:55 -05:00
Thomas Kluyver
0c5613b13a Merge pull request #1982 from minrk/fixCR5
fix carriage return handling
2016-12-16 18:16:57 +00:00
Min RK
a2f7325537 fix carriage return handling
The only real fix is an errant `+` on the final replacement, which would end up skipping sequential replacements.

- leaves trailing `\r` on the text, if there is one
- use groups to avoid unnecessary replace calls (no change)
- includes test
2016-12-16 13:53:09 +01:00
Min RK
5f0d05c5fe Merge pull request #1975 from minrk/cors-auth-header
add Authorization to allowed CORS headers
2016-12-15 10:19:03 +01:00
Min RK
a51efa5acc add Authorization to allowed CORS headers
so that CORS requests can be token-authenticated
2016-12-14 10:44:30 +01:00
Thomas Kluyver
6ee01644c4 Merge pull request #1972 from minrk/token-docs
better docs for token auth
2016-12-13 15:40:27 +00:00
Min RK
7fa5d5a1be cover token authentication in security docs 2016-12-13 13:09:55 +01:00
Min RK
7c7f065547 include token info on login page 2016-12-13 13:07:28 +01:00
Min RK
a33ad66460 clarify the default token behavior in help output 2016-12-13 13:07:14 +01:00
Matthias Geier
6a5e22e646 Use attachment:path instead of attachment://path
This partly reverts #1659, see also #1655.
2016-12-11 18:20:31 +01:00
Min RK
c05138a219 Merge pull request #1956 from jasongrout/fontsize
Make the font size more robust against fickle browser values.
2016-12-09 16:47:54 +01:00
Min RK
6adae92d42 Merge pull request #1958 from jasongrout/callbackid
Add output callback overrides
2016-12-09 14:16:14 +01:00
Jason Grout
1864fe5adb Some tests for output callback overrides. 2016-12-09 02:49:37 -08:00
Jason Grout
c3de744fe9 Return after error condition. 2016-12-08 17:22:37 -08:00
Jason Grout
66146cc265 Write the get_output_callback_id function that we use. 2016-12-08 17:22:37 -08:00
Jason Grout
5d84a55e4a Add an output callback override stack
This allows us to override output callbacks to redirect output messages, and is used to implement the Output widget, for example. It does not redirect status messages or messages on other channels.
2016-12-08 16:12:07 -08:00
Jason Grout
e2c0b6b5b7 Fix a subtle async bug in processing comm messages.
Basically, message processing did not wait for any promises a comm message handler may return to resolve, because comms were not set up to resolve return values of message handlers.
2016-12-08 16:05:28 -08:00
Thomas Kluyver
32f92b489e Merge pull request #1955 from gnestor/4.3
Add 4.3 to changelog
2016-12-08 15:32:46 +01:00
Jason Grout
d376b35636 Make the font size more robust against fickle browser values.
Also change the line-height multiplier to 1.3, which is closer to what the CSS is (I think it is 1.21 something.)

Thanks to @williamstein and @haraldschilly for bringing this to our attention: https://github.com/sagemathinc/smc/issues/1262

We also re-enable auto scrolling for Firefox, since this might have been the issue.
2016-12-07 12:50:18 -08:00
Grant Nestor
74b935e6b5 Add 4.3 to changelog 2016-12-07 12:05:12 -08:00
Paul Ivanov
2fd22fa254 Merge pull request #1953 from jasongrout/polyfill
Polyfill promises from the page template.
2016-12-07 12:01:56 -08:00
Jason Grout
b3936cb3b8 Polyfill promises from the page template.
Doing this from webpack as a plugin caused https://github.com/ipython/ipywidgets/issues/844 (and probably other issues we haven’t noticed), and also forced us to use the es6-promise Promise object instead of the native one.

Fixes https://github.com/ipython/ipywidgets/issues/844
2016-12-07 11:43:26 -08:00
Thomas Kluyver
f0050e9bf8 Merge pull request #1952 from gnestor/display_order-index
Set mimerender index in `OutputArea.display_order`
2016-12-07 16:33:54 +01:00
Grant Nestor
19c9a791cc Pass options.index to OutputArea.register_mime_type to set display_order index 2016-12-06 13:06:46 -08:00
Grant Nestor
a4744c696f Expose OutputArea.mime_types to allow extensions to calculate display_order index 2016-12-06 13:06:46 -08:00
Kyle Kelley
ce575f7a5a Merge pull request #1949 from plysaght/patch-1
Fixed typo in 1st line of Browser Compatibility section
2016-12-05 13:53:53 -08:00
plysaght
b431a9a11a Fixed typo in 1st line of Browser Compatibility section 2016-12-05 12:18:34 -08:00
Min RK
38060d001e Merge pull request #1939 from jupyter/static-file-log
Add debug log for static file paths
2016-12-05 10:14:49 +01:00
Kyle Kelley
db8d711b50 Merge pull request #1947 from takluyver/i1940
Ensure variable is set if exc_info is falsey
2016-12-04 14:35:51 -08:00
Thomas Kluyver
283042c675 Ensure variable is set if exc_info is falsey
Closes gh-1940
2016-12-04 14:33:39 +00:00