Min RK
ffaa09492a
Merge pull request #7315 from Carreau/codacy2
...
miscellaneous cleanup
11 years ago
Matthias Bussonnier
c0efca80ea
Merge pull request #7331 from minrk/fix-scroll
...
fix scroll actions
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
96a5661648
fix scroll actions
...
div#notebook no longer scrolls at all.
Instead, only the body scrolls.
This may be a problem, but at least scroll actions work now.
11 years ago
Min RK
a417785c5e
add resource URLs to kernelspec model
...
- move kernelspec itself to model.spec
- add resources top-level key with resource URLs
- no more 404s or HEAD requests under normal circumstances
11 years ago
Bussonnier Matthias
f0c5de7c7e
make method private
11 years ago
Bussonnier Matthias
df418c6a62
fix restore checkpoint add an empty cell
11 years ago
Min RK
26136f44d2
Merge pull request #7088 from Carreau/kernel.js
...
Load the per kernel kernel.js and kernel.css
11 years ago
Thomas Kluyver
7f221537d4
Fix default_cell_type option for notebook
11 years ago
Thomas Kluyver
938630b475
Remove user_config js module
11 years ago
Jonathan Frederic
12366e8e8d
Clean up comments
11 years ago
Jonathan Frederic
1e0acbeb31
Write a plugin to handle private function automatically.
11 years ago
Jonathan Frederic
c703b3f3f5
Some clean-up
11 years ago
Jonathan Frederic
beb5ea6deb
Make sure every function appears in the Notebook class.
11 years ago
Jonathan Frederic
d756816e2b
Some typo fixes
11 years ago
Jonathan Frederic
5802309151
Make notebook.js jsdoc compatible
11 years ago
Jonathan Frederic
1aa280d9c9
Start JSDoc integration
11 years ago
Matthias Bussonnier
47822187c1
Fix typos, rephrase english. Thanks Kyle.
11 years ago
Matthias BUSSONNIER
4239dc03f3
load the per kernel kernel.js and kernel.css
...
As per discussion, each kernel can provide a file name kernel.js that
we try to load at kernel switching. If such a file exist we assume that
the kernel pathches the javasscript and that this javascript cannot be
unpatched, and further switching of the kernel cannot be undone without
reloading the page. (separate PR for UI)
if a kernel provide kernel.js, the it should consist into a AMD module
definition that uses require.js the module shoudl define a function name
`onload` that will be called at the appropriate moment before the kernel
starts.
11 years ago
Jonathan Frederic
5d4b83ba4a
Add an event that fires before the notebook saves
11 years ago
Jonathan Frederic
8a5770b811
Add convenience API
11 years ago
Jonathan Frederic
d466601dbb
Persistence API,
...
This is a combination of 10 commits.
Enable widget instanciation from front-end.
Address @minrk 's review comments.
Make API that allows users to persist widget state easily.
Added support for view persistence
Started adding support for model persistence.
Half way there!
Finished persistence API.
Move persistence code into the widget framework.
Fin.
Bug fixes
11 years ago
Nicholas Bollweg (Nick)
c72ad2754c
more fidgeting before starting over
11 years ago
Nicholas Bollweg (Nick)
5858350cc3
handling explicitly provided modes from kernelspec.language_info
11 years ago
Nicholas Bollweg (Nick)
68c4714338
using codemirror mode/meta for detection
11 years ago
Min RK
696394e27d
allow kernel_name to be specified in url parameter
11 years ago
Thomas Kluyver
c3cb2164f6
Clear output after replacing cell contents
11 years ago
Thomas Kluyver
90817ccb1f
Machinery to replace the current cell instead of adding a new one
11 years ago
Jonathan Frederic
b53386b37b
Ran function comment conversion tool
11 years ago
Thomas Kluyver
1929f5702c
Merge pull request #6945 from minrk/kernel-info-lang
...
fix loading of language name from kernel_info
11 years ago
Thomas Kluyver
eb14a13843
Merge pull request #6991 from minrk/unhandled-types
...
Handle unrecognized output and cell types
11 years ago
Min RK
88219df674
Preserve nbformat_minor from the future
...
warn on click of unrecognized elements, rather than on load.
11 years ago
Bussonnier Matthias
794ef18920
get cell correctly in nested context
...
fix some extensions like live_reveal
the .not('.cell .cell') part prevent the potential selection of DOM
elelment that would have the class cell from any output. In each branch
of the dom we thus select the first decendent node that have the class
'.cell'.
11 years ago
Min RK
535bbee883
Merge pull request #6978 from takluyver/nbconvert-script
...
Nbconvert to script for any kernel language
11 years ago
Min RK
c72c637511
move language name, version into language_info
...
in kernel_info_reply
adds adaptation of language info to msgspec adapter
11 years ago
Min RK
4ec20d55da
fix loading of language name from kernel_info
...
language is langinfo.name, not langinfo.language
fixes highlighting for IJulia kernels
11 years ago
Min RK
c9a4e5b00d
handle various permission failures
...
- turn various EPERM, EACCES errors into 403
- add `writable` bool field to contents models
- if a notebook is not `writable`, save is disabled
11 years ago
Min RK
bb23105fdd
Handle unrecognized outputs and cells from the future
11 years ago
Bussonnier Matthias
907d70339e
some extra comma/semicolon cleanup
11 years ago
Bussonnier Matthias
ac355d757f
update to use event
11 years ago
Matthias Bussonnier
9ae62c21b8
Some cleanup unused code and missig use-strict
11 years ago
Thomas Kluyver
58b0669b9b
Fix asyncy nbconvert to download
11 years ago
Min RK
c7ad3aa47d
Don't dismiss rename dialog until rename is complete
...
- draws error message in the same dialog,
rather than triggering a new dialog via events.
- `Notebook.rename` returns the contents Promise, rather than registering its own error handler.
11 years ago
MinRK
29e49329e2
use CodeMirror.runMode to highlight in markdown
...
instead of highlight.js
11 years ago
Thomas Kluyver
56320588da
Return JSON from contents API checkpoint methods
11 years ago
Thomas Kluyver
aecb4bffa5
All aboard the promise train
11 years ago
Thomas Kluyver
11cfcc40d4
Use promises for GET requests
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
Min RK
0f8127c36f
Merge pull request #6735 from Carreau/native-map
...
Use native map when possible
11 years ago
Thomas Kluyver
f9db65ab6f
Expose and use get requests specifying type in the JS
11 years ago