Min RK
1f5f0be854
address code review
...
- remove ctrl shortcuts for scrolling
- rename scroll actions 'scroll-cell-center', 'scroll-cell-top'
- rename added notebook method `scroll_cell_percent`
11 years ago
Alexander Belopolsky
6d5c0725d9
Separated recenter and top actions.
11 years ago
Min RK
effbd91b77
directly blur codemirror to trigger command-mode
...
rather than focusing the cell, which implies codemirror blur
11 years ago
RickWinter
81a912fbb9
Fixes bug that would show "null" as a message in the don't leave dialog
11 years ago
Matthias Bussonnier
7d90525799
replace undefined by empty string to get aroung bug in ie
11 years ago
Min RK
8454ae087b
update last_modified on rename
...
some storage backends may update the last_modified date on rename
11 years ago
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.
11 years ago
Min RK
0ea61c7500
Merge pull request #7747 from Carreau/fix-lang
...
Select language based on old notebook meta.lang.
11 years ago
Matthias Bussonnier
1ea96d24c4
typo "Should"
11 years ago
Matthias Bussonnier
7a9797f6f6
Typo "settings"
11 years ago
Min RK
124874f115
Merge pull request #7610 from Carreau/_blank
...
make some target _blank configurable
11 years ago
Matthias Bussonnier
2394be85c2
explicitely pass language for old notebook
11 years ago
Matthias Bussonnier
62bfd92374
Select language based on old notebook meta.lang.
...
Also fix UI when selecting kernels by string.
Fix #7744 and #7742
11 years ago
Min RK
cdb5deef9a
use IPython._target in window.open
11 years ago
Min RK
0ef85028d7
don't prevent spec_changed from firing on load
...
fixes check for the case where kernelspec info is coming from the kernel,
rather than notebook metadata.
This case was getting skipped by a bad check on `_session_starting`.
11 years ago
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