MinRK
0909694b50
avoid race condition when deleting/starting sessions
...
javascript doesn't guarantee the order of AJAX requests,
so we give `Session.delete` and `Kernel.kill` a callback signature.
Changing the kernel type calls `Notebook.start_kernel`,
which terminates the previous session, if defined,
before starting the new one.
A flag is stored, to prevent multiple simultaneous attempts to start sessions, raising a SessionAlreadyStarting Error,
preventing the spec_changed event from firing.
12 years ago
MinRK
bd5a88e954
handle undefined or closed zmq_stream in on_message
...
can happen if a message is waiting in a pipe and the web socket is closed before the message is handled.
And give ZMQChannels a nice repr with their kernel ID
12 years ago
MinRK
e3696996be
JS: close WebSockets when killing kernels
...
by calling Kernel.stop_channels() in Session.delete and Kernel.kill
12 years ago
Jonathan Frederic
865fb20c00
Merge pull request #6284 from jasongrout/patch-6
...
Default view should be the base widget view class
12 years ago
Thomas Kluyver
e60f8bdda1
Merge pull request #6228 from jdfreder/eventful-list-dict
...
Add EventfulList and EventfulDict trait types.
12 years ago
Jason Grout
d64627380b
Default view should be the base widget view class
12 years ago
Paul Ivanov
6162c99028
nbconvert requires mistune
...
You get a cryptic error message from iptest if mistune is not installed.
Test group: nbconvert
E
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'nbconvert')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 403, in loadTestsFromName
module = resolve_name(addr.module)
File "/usr/lib/python2.7/dist-packages/nose/util.py", line 321, in resolve_name
obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'nbconvert'
----------------------------------------------------------------------
Ran 1 test in 0.001s
FAILED (errors=1
12 years ago
Jonathan Frederic
6026ef45d2
Merge pull request #6266 from Carreau/fix-lgw-css
...
fix loginwidget css
12 years ago
Jonathan Frederic
cffe958e4c
s/this/self
12 years ago
Jonathan Frederic
d31655f50a
kwarg on_events and hardcoded callbacks
12 years ago
Jonathan Frederic
e4860ae075
Use ternary operator for callback registration
12 years ago
Jonathan Frederic
22e210e981
Added on_events convinience method
12 years ago
Jonathan Frederic
3d6fcc6a60
Address review comments @takluyver
12 years ago
Jonathan Frederic
71ea1459ab
Add EventfulList and EventfulDict trait types.
12 years ago
Jonathan Frederic
ba0a805404
Merge pull request #6226 from jasongrout/css-top-default
...
Remove $el_to_style from the widget javascript code; '' now defaults to this.$el
12 years ago
Jonathan Frederic
fd50a3228e
Merge pull request #6250 from minrk/double-free-widget
...
avoid unregistering widget model twice
12 years ago
Matthias BUSSONNIER
d1dc31c9de
fix loginwidget css
12 years ago
Thomas Kluyver
c15284d716
Merge pull request #6238 from ivanov/cm-heading-fonts
...
proportional font-size when editing heading cells
12 years ago
Thomas Kluyver
b95de43b97
Merge pull request #6253 from jasongrout/highlighting-bug
...
Copy codemirror mode configuration instead of changing it
12 years ago
Jason Grout
c80709e5a3
Copy codemirror mode configuration instead of changing it
...
If we change it, the modified (wrong) mode is saved in the notebook, which
wrecks havoc on highlighting once the notebook is saved and reopened.
12 years ago
Thomas Kluyver
4db6295fba
Merge pull request #6249 from minrk/always-https-mathjax
...
always use HTTPS getting mathjax from CDN
12 years ago
MinRK
09c1354ea7
avoid unregistering widget model twice
...
widgets are registered when the comm is created;
closing unregisters them. Calling `close` a second time
should be a no-op.
12 years ago
MinRK
b47ddffd42
always use HTTPS getting mathjax from CDN
12 years ago
MinRK
fae77bd133
remove unused project_dir
12 years ago
MinRK
3e79eea46b
update contents per further review
...
- fix is_hidden always returning True on nonexistent files
- create hidden dir fails with 400
- don't read binary files twice
- logging improvements
- dialog on invalid notebook upload
- warn about disabled `--save`
12 years ago
MinRK
fb89646a29
various upload fixes
...
- recognize 201 as success (dataType must not be 'json')
- support uploading non-notebook files (b64-encoded)
12 years ago
MinRK
3c26b079f0
updates per review
...
- clarified docstrings and errors
- still more notebook/file renames
- configurable untitled names
- copy_from can be full path
- fix running, upload, new-tab behaviors in dashboard
Yay, review!
12 years ago
MinRK
d4fe081fe5
move `/files/` redirect to base handlers
...
and reuse it in /nbconvert/html/…
closes #6137
12 years ago
MinRK
bec995aa63
updates per review
...
a few more notebook mentions in docstrings,
and inappropriate use of setdefault.
12 years ago
MinRK
2ea31b5ee0
use contents manager to handle redirect of /notebooks -> /files
...
avoids 404 on /files for visiting a nonexistent notebook
12 years ago
MinRK
93b300adda
support deleting empty directories
...
can’t copy directories
12 years ago
MinRK
260afd76ae
contents service review
...
- missed some s/notebook/file/ in docstrings
- manager doesn’t sort contents
12 years ago
MinRK
accf0878ae
test creating a directory with PUT
12 years ago
MinRK
8c4069cc00
add support and tests for uploading and saving regular files
12 years ago
MinRK
3674958b70
teach tree view about non-notebook files
12 years ago
MinRK
0c0eb43719
teach contents service about non-notebook files
12 years ago
MinRK
6cce477e07
rename notebooks service to contents service
...
minimal functional changes, committing because tests are passing.
12 years ago
MinRK
b73aa2b9f9
mv services/notebooks services/contents
12 years ago
Min RK
d093237f2f
Merge pull request #6216 from SylvainCorlay/comm-unregister
...
Unregistering comms in Comm Manager
12 years ago
Sylvain Corlay
1bbc915ac0
setting _comm to None
12 years ago
Paul Ivanov
fd53a306c4
Merge pull request #6197 from ivanov/set-text-rendered
...
changing text of cell should reset rendered status
12 years ago
Paul Ivanov
9cafcaa421
fix more style consistencies
12 years ago
Paul Ivanov
5e018bba0d
match font family when editing heading cells
12 years ago
Paul Ivanov
468e568ea7
appropriate heading level when loading from JSON
12 years ago
Min RK
a2a70b40e2
Merge pull request #6145 from Carreau/style-cleanup
...
JS/CSS Style cleanup
12 years ago
Jonathan Frederic
083671a572
Fix js-tests for new default selector logic.
12 years ago
Thomas Kluyver
9e2363a657
Merge pull request #6237 from jasongrout/iptest-profile-dir
...
Explicitly set the profile directory when running tests
12 years ago
Matthias BUSSONNIER
2899c766a1
remove var
12 years ago
Jason Grout
35c3095da0
Explicitly set the current working directory when running tests
...
Because of the profile directory searching algorithm, if the current
working directory has a directory named 'profile_default', that will
be used instead of the temporary profile directory the tests expect.
12 years ago
Paul Ivanov
66733621de
proportional font-size when editing heading cells
...
@MinRK @takluyver and I had the idea to do this when we were discussing #6225 .
12 years ago