Commit Graph

5870 Commits

Author SHA1 Message Date
Matthias Bussonnier
bfc45392f8 remove Stray .c 2015-03-16 14:23:04 -07:00
Matthias Bussonnier
025ec6df77 Rename local variable to avoid confusion. 2015-03-13 14:37:38 -07:00
Matthias Bussonnier
63a4a764f2 Merge codemirror config with user config.
Simplify customisation of codemirror without duplicating the all
codecell configuration.

Closes #8038
2015-03-13 13:40:44 -07:00
Min RK
c6e440c1f9 Merge pull request #7992 from Carreau/falsejs
remove false info in custom.js
2015-03-13 12:25:50 -07:00
Min RK
0e4417326f Merge pull request #8027 from bollwyvl/fix-select-multiple
Don't re-implement option.click to trigger select.change

closes #8012
2015-03-13 12:25:05 -07:00
Matthias Bussonnier
22f619f316 add dot end of sentence. 2015-03-13 11:47:24 -07:00
Min RK
3a21271d7e Merge pull request #7926 from Carreau/config-3.1
Fix configurability of codecell
2015-03-12 17:49:28 -07:00
Matthias Bussonnier
0e46460094 Remove false info in custom.js 2015-03-12 17:15:22 -07:00
Thomas Kluyver
484958d282 Merge pull request #7983 from minrk/contents-escape-root
contents: double check that os_path is always within root
2015-03-12 15:20:51 -07:00
Min RK
08d8fe6c10 Merge pull request #8024 from Carreau/fix-focus
Fix save switch to command mode after shortcut
2015-03-12 15:19:27 -07:00
Matthias Bussonnier
596dd46e93 Merge pull request #7932 from jdfreder/dashcss
Fix alignment of dashboard things.
2015-03-12 15:09:37 -07:00
Matthias Bussonnier
86e131d478 Merge pull request #7982 from minrk/window-height
use $(window).height() instead of window.innerHeight
2015-03-12 15:05:00 -07:00
Justin Tyberg
8c486f0963 Fix custom.js samples to define requirejs module rather than require it. 2015-03-12 16:17:50 -04:00
Matthias Bussonnier
0408e7e4e4 Fix save switch to command mode after shortcut
When triggering actions with button one have to refocus the notebook
cell. Though with keyboard shortcut, you don't want cell to switch to
command mode.
2015-03-12 10:57:02 -07:00
Nicholas Bollweg
1fa4296cef fixes #8012 2015-03-12 07:42:50 -04:00
Matthias Bussonnier
75fe862814 remove private methods 2015-03-09 17:54:26 -07:00
Min RK
a89e800e18 trigger save before copy if there are unsaved changes.
just like we do before downloading
2015-03-09 09:50:17 -07:00
Jonathan Frederic
c5f20e9481 Merge pull request #7681 from mathieu1/tree-selector-ui
Streamline tree-selector menu
2015-03-05 23:35:33 -08:00
Min RK
62e4a5d072 contents: double check that os_path is always within root
check based on tornado `StaticFileHandler.validate_absolute_path`

I haven't been able to actually escape root, but we should have this check anyway.
2015-03-05 17:25:06 -08:00
Min RK
bfa501855a use $(window).height() instead of window.innerHeight
to measure window height when resizing contents

Sometimes these values differ by a pixel,
we may never know why.

window.innerHeight seems to be larger when they disagree, causing an extra scrollbar to be drawn.
2015-03-05 16:46:58 -08:00
Thomas Kluyver
1daa179153 Merge pull request #7981 from Carreau/focus-after-save
Refocus notebook after click on save
2015-03-05 14:35:22 -08:00
Matthias Bussonnier
afd74fbb94 Refocus notebook after click on save
closes #7963
2015-03-05 14:22:31 -08:00
Mathieu
eaeff19314 simpler select function 2015-03-05 17:05:02 +01:00
Scott Sanderson
7a1b8d7dff DEV: Add re-raise toggle for server extensions.
Also renames toggles to "reraise_*_extension_failures".
2015-03-04 18:09:35 -05:00
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
b8ffcf351c invoke css 2015-03-02 14:26:14 -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
0cf008d23d Only pad indicator text. 2015-03-02 14:21:30 -08:00
Jonathan Frederic
65868feb17 Move checkbox down two pixels b/c it looks like 💩 where it is. 2015-03-02 14:17:54 -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
Matthias Bussonnier
103f2f1df2 Update comment for future removal of code 2015-03-02 10:34:38 -08:00
Matthias Bussonnier
ed60311a75 Fix configurability of codecell
code cell where actually not configurable,
this fixes that + add a convenient methods to dump the
content of the configuration in the config file.

this also close #7896 by defaulting closebracket to true,
which is now configurable :-)

It also switches the default magic highlight mode to string so that they
could also be configured.
2015-03-02 10:29:06 -08: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