Thomas Kluyver
d7f1166005
Merge pull request #7454 from minrk/project_name
...
add language name to kernelspec
11 years ago
Min RK
e1c8de79dd
Merge pull request #7606 from Carreau/date-now
...
Date now
11 years ago
Matthias Bussonnier
729b0922b1
Parse Date with moment.js or Because Date(str) return Now()
...
Also so relative date in confirmation dialog because It's easier to
parse mentally.
Closes #7535
11 years ago
Matthias Bussonnier
e558e1aeb8
refactor imports
11 years ago
Min RK
89bb88bf6e
s/language_name/language/
11 years ago
Min RK
f5e2bb712d
replace project_name with language_name
...
- automatically choose language match, if only one
- only list language matches in select dialog
- list all kernels if no language match
11 years ago
Min RK
e514d930cf
handle missing kernel
...
- if project_name matches, pick another kernel
- if no match, show dialog with kernel selector
11 years ago
Min RK
6bf7f1ab43
add project_name to kernelspec
...
this should be the same for compatible kernels ('ipython', 'ijulia', etc.)
11 years ago
Min RK
f52ecf1beb
warn on clobber of notebooks
...
check last_modified before saving. If it's changed, confirm overwrite.
11 years ago
Bussonnier Matthias
ab8290ae95
Catch and/or log a bit more errors.
11 years ago
Min RK
4fe63dd38f
don't set language_info to an empty dict
...
delete it from metadata if language_info is undefined
11 years ago
Min RK
015b68e7b4
Merge pull request #7413 from Carreau/end_Space
...
fix end_space size
closes #7409
closes #7372
11 years ago
Min RK
5f9e75dcef
cleanup kernelspec loading
...
- kernel_selector.set_kernel validates selection and triggers 'spec_changed.Kernel'. It does not start the session anymore.
- notebook calls kernel_selector.set_kernel when:
- kernelspec is in notebook metadata
- session is loaded (e.g. no kernelspec metadata)
- notebook starts session, loads metadata on spec_changed.kernel
The only case where starting the session is not triggered by spec_changed is on notebook load with no kernel metadata
11 years ago
Min RK
0e5ee5bc34
move promise sync to kernelselector, from notebook
11 years ago
Min RK
1028c8d192
use promises to wait for kernelspecs on notebook load
...
should avoid race condition that causes attempt to load kernelspec
prior to loading the kernelspec list
11 years ago
Matthias Bussonnier
c106e76a66
fix end_space size
...
closes #7409
Mostly a symptome of too many nested div that do different things.
don't try to both have an end space inside and outside the 'document'
area. And don't try to also get the things to be 100viewport height by
hacking around and make them smaller;
11 years ago
Matthias Bussonnier
87b7f7599c
Merge pull request #7278 from minrk/nb-file-ext
...
don't enforce .ipynb extension in URLs
11 years ago
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
43da311f5e
add Notebook.ensure_extension
...
allows override of file-extension logic in notebook extensions
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