Matthias Bussonnier
7d90525799
replace undefined by empty string to get aroung bug in ie
11 years ago
Min RK
a89e800e18
trigger save before copy if there are unsaved changes.
...
just like we do before downloading
11 years ago
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.
11 years ago
Min RK
124874f115
Merge pull request #7610 from Carreau/_blank
...
make some target _blank configurable
11 years ago
Min RK
cdb5deef9a
use IPython._target in window.open
11 years ago
Min RK
a720a14159
fix help-links on Firefox
...
link text must come after icon to layout properly on Firefox
this makes help links from the kernel match those already populated from the template
11 years ago
Min RK
76624b9a93
remove preventDefault on menubar
...
no longer needed after removing fixed header
11 years ago
Min RK
eba94f4e0b
remove superfluous event.preventDefault
...
from #7416
only one of the additions from that PR was necessary to address the issue
11 years ago
Matthias Bussonnier
b7bdfa715c
Merge pull request #7444 from minrk/toggle-header-bar
...
hide header-bar when header is hidden
11 years ago
Min RK
5b4657e9c5
disable trust-notebook click event
...
when trust-notebook item is disabled
11 years ago
Matthias Bussonnier
3aef283f79
Prevent jump when clicking on action in menu.
...
To do so prevent even default action;
Closes #7367
11 years ago
Min RK
e2de7a928a
hide header-bar when header is hidden
...
also reduce the amount of CSS used to accomplish the 1px line (no negative margins)
11 years ago
Mathieu
d90cc0e0de
put current kernel at the top
11 years ago
Mathieu
4e5839dde4
add choice of kernel for new notebook
11 years ago
Mathieu
0eb340b3e2
create new notebook with same kernel
11 years ago
Min RK
ffaa09492a
Merge pull request #7315 from Carreau/codacy2
...
miscellaneous cleanup
11 years ago
Matthias Bussonnier
4e2dfe2527
Some code cleanup in javascript and python
...
change patern that are prone to error, like function redifinition
and other.
11 years ago
Min RK
83f51e877c
move Python-specific help links to kernel_info
...
help_links in kernel_info were already in the msg spec,
but not implemented.
Python-specific docs are now linked to the Python version.
11 years ago
Min RK
93bbf6d52e
remove nbconvert_exporter handling from frontend
...
dispatch happens in the script exporter,
frontend doesn't need to know about it anymore.
11 years ago
Jonathan Frederic
353a9afd34
Kill the layout manager
11 years ago
Jonathan Frederic
b53386b37b
Ran function comment conversion tool
11 years ago
Thomas Kluyver
8bfec5015b
Add the . into file_extension
11 years ago
Thomas Kluyver
58b0669b9b
Fix asyncy nbconvert to download
11 years ago
Thomas Kluyver
800e2ad25a
'Download as' script
11 years ago
Min RK
388fec4f96
Merge pull request #6924 from takluyver/contents-promises
...
Use promises in the JS contents API
11 years ago
Thomas Kluyver
f7860ce9d2
Remove trailing comma
11 years ago
Thomas Kluyver
7240d2dafc
Just use notebook_path in download URLs
...
notebook_name is now superfluous
Closes gh-6937
11 years ago
Thomas Kluyver
aecb4bffa5
All aboard the promise train
11 years ago
Min RK
0a22217f7e
Merge pull request #6900 from takluyver/contents-api-get-as-type
...
Contents API get as type
11 years ago
Thomas Kluyver
e453b160b1
Some fixes for the tree view
11 years ago
Thomas Kluyver
260ebcebcf
Open window before creating new notebook
...
Avoids the need for synchronous requests.
11 years ago
Min RK
3870a30ce4
contents.new_untitled to match Python API
11 years ago
Min RK
39041a9f03
address review in contents service
...
- various docstrings, comments clarified and updated
- misc typos
- fix and test creating an untitled directory via POST
- only define `message` if there's something to say
11 years ago
Min RK
8407ba3a08
update frontend with path/name changes
...
- remove name from models
- path is full path (contains name)
11 years ago
Min RK
59b54eba53
add Reconnect to kernel menu
11 years ago
Thomas Kluyver
e6939f9aa5
Merge pull request #6846 from minrk/deprecate-heading-ui
...
deprecate heading cells in UI
11 years ago
Thomas Kluyver
b7a558d5b9
Use synchronous request for creating new notebooks
...
To get round popup blockers
11 years ago
Min RK
04bcfa626d
deprecate heading cells in UI
...
- removed from Kernel Menu
- Main toolbar warns via shouty dialog
- keyboard shortcuts still work to make headings in markdown cells, with no warning
11 years ago
Thomas Kluyver
5279418acf
Make Contents.new more generic
11 years ago
Kester Tong
89df330129
Modifies Contents API to return Error objects
...
Modfies the Contents class to return JavaScript Error objects instead of passing on the return values from $.ajax(). This has two advantages. First, it allows the content manager to parse errors and give more informative messages than the ajax response. Second, it makes the Contents interface more general, since other kinds of backends might generate client-side errors.
11 years ago
Thomas Kluyver
ea314a2a86
Rename callback parameters to success/error
11 years ago
Thomas Kluyver
060dd1305c
Miscellaneous JS fixes
11 years ago
Thomas Kluyver
9538726b16
Don't do UI stuff in contents API module
11 years ago
Jeff Hemmelgarn
53463898eb
Move contentmanager to contents
11 years ago
KesterTong
993833d018
Replace other methods with ContentManager.new_notebook
...
Replaces Notebook.new_notebook and NotebookList.new_notebook with ContentManager.new_notebook
11 years ago
Min RK
1d7f8803e0
use ?download=1 to trigger download in /files/
...
sets `Content-Disposition: attachment...`
- master sets this unconditionally
- 2.x sets this iff file is a notebook
11 years ago
Thomas Kluyver
eacd05505c
Open download in a new window instead of changing the URL
...
Closes gh-6764
11 years ago
Jessica B. Hamrick
3dfe601a8f
Fix session references in toolbar and menubar
11 years ago
Matthias Bussonnier
77ec6fdfa2
Merge pull request #6205 from Carreau/momentjs
...
use momentjs for nicer dates
12 years ago
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