Commit Graph

5831 Commits

Author SHA1 Message Date
Peter Parente
dc8f9b0733 Ensure Cache-Control is set once and only once
Whether browsers should pick the first or last instance of a duped header is ill defined
2015-03-03 22:40:27 -05:00
Min RK
dfb36abc4d make 'download as PDF' say 'via LaTeX'
so it's clear that LaTeX is required
2015-03-03 13:46:26 -08:00
Jason Grout
e1a6dbd4be Handle kernel messages synchronously
A problem can happen when two messages come in for different
comms, where the second depends on the first (for example, the
first might be a message setting the state of a widget, and the
second triggering a view creation for the widget).  Since comm
message queues are independent of each other, the second message
could be executed before the first message.

This exposes a more fundamental assumption users are likely to
have that messages from python are processed synchronously.

Thanks to @dmadeka for reporting an error that led to discovering this issue.
2015-03-03 16:01:23 +00:00
Jonathan Frederic
e50344f4e6 invoke css 2015-03-02 14:27:53 -08:00
Jonathan Frederic
5ad87d13d6 Merge pull request #7902 from gertingold/radio
fix margin in RadioButtons
2015-03-02 14:25:06 -08:00
Jonathan Frederic
e09b83e910 Merge pull request #7725 from SylvainCorlay/fabutton
Adding font-awesome icon to button and toggle button
2015-03-02 11:54:06 -08:00
Sylvain Corlay
03b884a615 Moving styling to else statement 2015-03-02 14:34:37 -05:00
Min RK
6cb15fbffe Merge pull request #7780 from jasongrout/message-race
Fix race condition in javascript kernel message processing
2015-03-02 09:27:36 -08:00
Matthias Bussonnier
242fc93f93 Merge pull request #7889 from Carreau/after-one-year
Js completion traceback, erase line on tab, and double complete.
2015-03-01 21:19:03 -08:00
Min RK
f76ce1d6b9 warn about failure to bind to localhost
when falling back on 127.0.0.1
2015-03-01 20:22:51 -08:00
Min RK
c605ea44cc fallback on 127.0.0.1 if localhost cannot be bound
Some (broken) systems cannot bind to localhost.
This handles that failure and falls back to 127 as the default
2015-03-01 20:22:51 -08:00
Min RK
17ee541add actually catch failure to load widget state
load callback was called directly,
rather than in promise function that catches errors
2015-02-28 15:10:48 -08:00
Min RK
fb12238bb2 update js serialize test
msg count and msgspec v5 API changes
2015-02-28 13:31:05 -08:00
Thomas Kluyver
2b95955079 Merge pull request #7906 from minrk/skip-perm-test-windows
skip permission error -> 403 test on Windows
2015-02-28 13:17:30 -08:00
Matthias Bussonnier
709126542a Merge pull request #7832 from minrk/default-secure-session
remove default_secure, make Session secure by default
2015-02-28 12:59:14 -08:00
Min RK
0bc4549d25 skip permission -> 403 test on Windows
The test actually passes on my VM (Win 7),
but not on Jenkins (Server 2012).

I haven't figured out how to identify the subset of Windows systems where it won't work,
but since the problem appears to be in the test,
not the tested code, skipping on Windows seems the right way to go.
2015-02-28 11:52:52 -08:00
Min RK
d9f01671ae make it clearer that we adapt to old messages
> Adapting to protocol vX for kernel Y

instead of

> Kernel Y speaks protocol version X

some have interpreted the "Kernel speaks" statement was an error message;
this should be clearer about what's happening,
and that there is no error.
2015-02-28 11:35:37 -08:00
Min RK
109ee00ebb get session.key from kernel manager
in kernel channel handlers

we were accidentally relying on loading Session.key from config set via the default_secure decorator,
which forced the key to be the same for every kernel.
2015-02-28 11:22:19 -08:00
Min RK
96334d4594 deprecate default_secure decorator
make Session secure by default on its own

I think the decorator was an artifact of very early design prototyping, and really isn't necessary.
2015-02-28 11:22:19 -08:00
Matthias Bussonnier
dad4ba22b8 Merge pull request #7881 from minrk/ssl-options
add ssl_options config value
2015-02-28 10:15:57 -08:00
Matthias Bussonnier
de90843b29 Merge pull request #7893 from Carreau/add-markdown-menu
Add Markdown to the list of downloadable nbconverted formats.
2015-02-28 10:15:12 -08:00
Matthias Bussonnier
4c567fb544 Merge pull request #7779 from abeguerra/defect-5544-fix-hyperlink-display
Fixed rendering of URL in append_stream function
2015-02-28 10:05:56 -08:00
Gert-Ludwig Ingold
5cef46f26e fix margin in RadioButtons 2015-02-28 18:42:34 +01:00
Min RK
65b2b3a651 Merge pull request #7888 from Carreau/horse
Don't recompute values
2015-02-27 17:28:45 -08:00
Fernando Perez
50c8c5feed Merge pull request #7852 from minrk/open-perm
Catch IOError in addition to OSError.

Closes #7848
2015-02-27 17:07:53 -08:00
Thomas Kluyver
2111ac4812 back to development 2015-02-27 15:47:42 -08:00
Thomas Kluyver
76ce8cd2fb Release 3.0 2015-02-27 15:46:17 -08:00
Matthias Bussonnier
59cab4c2d8 Add Markdown to the list of downloadable nbconverted formats.
Seem it was just forgotten. The list was not auto generated on purpose
IIRC, as some format, like TeX were deemed not useful in menu.
2015-02-27 09:17:55 -08:00
Matthias Bussonnier
a30b9b9446 Fix #4777 and #7887
The function in charge of actually converting cursor offset to
CodeMirror line number and character number was actually crashing when
the cursor was at the last character (loop until undefined, then access
length of variable, which is undefined).

This was hiding a bug in which when you would completer to a single
completion pressing tab after as-you-type filtering, the completion
would be completed twice.

The logic that was supposed to detect whether or not all completions had
a common prefix was actually faulty as the common prefix used to be a
string but was then changed to an object. Hence the logic to check
whether or not there was actually a common prefix was always true, even
for empty string, leading to the deletion of the line (replace by '') in
some cases.
2015-02-26 20:37:12 -08:00
Matthias Bussonnier
230ea32f0d Dont recompute values 2015-02-26 20:00:38 -08:00
Min RK
3aa004e5c3 add ssl_options config value
exposes more ssl config, such as ca_certs, disabling SSLv3, etc.
2015-02-26 12:01:20 -08:00
Min RK
41e61d42a5 Merge pull request #7871 from takluyver/docs-misc-cleanup-feb15
Misc docs cleanup
2015-02-26 09:12:15 -08:00
Jonathan Frederic
f2dec681d2 Merge pull request #7872 from jdfreder/interact-styling
Remove padding without breaking interact style.
2015-02-25 15:35:36 -08:00
Jonathan Frederic
100b4470f3 invoke css 2015-02-25 15:07:36 -08:00
Jonathan Frederic
63b181a1a2 Only style direct decendants. 2015-02-25 15:07:21 -08:00
Jonathan Frederic
b822a9f191 invoke css 2015-02-25 14:48:48 -08:00
Sylvain Corlay
78d6a5023d fix padding issue 2015-02-25 14:48:30 -08:00
Jonathan Frederic
1fbbda5a14 Pad interact widgets. 2015-02-25 14:48:02 -08:00
Thomas Kluyver
751de151e3 Clean up some docstring formatting for interact/interactive 2015-02-25 14:34:06 -08:00
Thomas Kluyver
80b931897c Fix some formatting for config options help 2015-02-25 14:24:25 -08:00
Thomas Kluyver
0dd26a9b32 Merge pull request #7855 from minrk/no-extra-contents-manager
don't force instantiation of extra, unused contents manager
2015-02-25 09:58:38 -08:00
Min RK
ce7e03bc61 make sure SessionManager tests have a ContentsManager 2015-02-24 17:00:38 -08:00
Thomas Kluyver
193ecc9d22 Merge pull request #7858 from takluyver/i7857
Dump frontend config JSON with an indent
2015-02-24 16:01:01 -08:00
Thomas Kluyver
8e4514d88b Dump frontend config JSON with an indent
Fixes gh-7857
2015-02-24 14:56:14 -08:00
Min RK
94656735f3 don't force instantiation of contents manager by default
this is never used and never needed, and results in the instantiation of a contents manager that is immediately discarded.
2015-02-24 14:16:24 -08:00
Min RK
b83a9383a6 test that FileContentsManager.open turns permission error into 403 2015-02-24 13:14:24 -08:00
Min RK
4e6805c408 catch IOError in addition to OSError
IOError is a subclass of OSError on py3, but not py2
2015-02-24 12:59:25 -08:00
Jason Grout
512187ac10 Fix contentsmanager api error message to give the path name 2015-02-24 20:45:20 +00:00
Min RK
d256f841f0 Merge pull request #7791 from parente/empty-running-table-fix-7789
Fix empty running table background
2015-02-21 19:18:37 +01:00
Jonathan Frederic
c65a28eb42 Merge pull request #7794 from SylvainCorlay/css_numeric_text
Minor styling fix for IntText and FloatText widgets
2015-02-20 11:18:31 -08:00