Andrew Dawes
471c1c9bba
layout key modifiers in alert-warning box
11 years ago
Andrew Dawes
f37edd7eef
rough draft of formatting
11 years ago
Andrew Dawes
c011dd9bfd
first shot at adding list of key symbols, need to format nicely
11 years ago
Min RK
e1926b2f12
Merge pull request #7515 from jhamrick/fix-tour
...
Fix user interface tour
closes #5570
closes #7418
11 years ago
Torsten Bittner
080f926c8e
Add documentation for interact function.
11 years ago
Min RK
b84ad79b2f
don't use fixed header
...
instead, use static header and flex box to accomplish the same thing.
fixes various issues related to scrolling, anchors, etc.
11 years ago
Min RK
bfc9908b75
Merge pull request #7516 from minrk/empty-language-info
...
don't set language_info to an empty dict
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
Brian E. Granger
918d13200a
Merge pull request #7271 from jdfreder/remove-term-page
...
Try moving terminal page contents into the running tab.
11 years ago
Jonathan Frederic
5ef0c1dfd3
invoke css
11 years ago
Jonathan Frederic
fafd6ca305
Move new button group over one pixel
11 years ago
Jessica B. Hamrick
241dd2b69c
Make tour functional again
11 years ago
Jonathan Frederic
78f28a635b
Review comments
11 years ago
Jonathan Frederic
705bd90653
Start forwarding the messages over widget custom messages
11 years ago
Min RK
784f07346d
add border to rendered markdown with cell toolbar
...
matches unrendered markdown and code cells
11 years ago
Min RK
b01bd7b626
Merge pull request #7493 from Carreau/secure-dialog
...
Sanitize dialog body when a string
11 years ago
Thomas Kluyver
411bf7a39d
Merge pull request #7445 from bollwyvl/left-rendered-text
...
left-aligning text
11 years ago
Bussonnier Matthias
b52467a966
sanitize only of text and not explicitely asked not to.
...
also some docs.
11 years ago
Min RK
0f6685acf0
test that custom description doesn't change kwarg
11 years ago
Min RK
21a7f75ade
Don't use widget.description as kwarg key
...
in interact.
description can be set manually,
so it cannot be relied upon to store the kwarg key.
Add a `widget._kwarg` attribute instead.
11 years ago
Min RK
4335486bdc
Merge pull request #7263 from takluyver/nb-common-config
...
Add common config section for frontend config
11 years ago
Thomas Kluyver
0a28783871
Expose load_extensions in utils
11 years ago
Thomas Kluyver
ad65ab13d8
Merge pull request #7491 from minrk/terminado.terminate
...
wait for terminado process to terminate
11 years ago
Jonathan Frederic
64f529d399
invoke css
11 years ago
Jonathan Frederic
f254cda663
Typo fix
11 years ago
Jonathan Frederic
96656a87e0
invoke css
11 years ago
Jonathan Frederic
d39311ccb5
Correct the padding of the new button group on the files page
11 years ago
Jonathan Frederic
db8cad5bff
invoke css
11 years ago
Jonathan Frederic
aebc1ac2c1
Adjust colors so they are the same
11 years ago
Jonathan Frederic
30a596b4df
Fix margins
11 years ago
Jonathan Frederic
cf0234d5f9
invoke css
11 years ago
Jonathan Frederic
bb0bc50cf3
Use bootstrap variable for table color
11 years ago
Jonathan Frederic
74fbcdfec2
invoke css
11 years ago
Jonathan Frederic
0159a2911d
Use less variable for header bg color
11 years ago
Jonathan Frederic
bc79ec0c75
invoke css after rebase
11 years ago
Jonathan Frederic
0cabf03343
Animated arrow icon
11 years ago
Jonathan Frederic
6007ef89fe
invoke css
11 years ago
Jonathan Frederic
070d9ace2e
Remove underline header collapse links
11 years ago
Jonathan Frederic
12fe7823ad
New Terminal into new new button
11 years ago
Jonathan Frederic
7c7da54699
invoke css
11 years ago
Jonathan Frederic
0b4d5e73b2
Decrease 2px bottom border to 1px
11 years ago
Jonathan Frederic
33d1bc2abe
Fix heading height
11 years ago
Jonathan Frederic
9f35ee6c7a
Use less for heading padding
11 years ago
Jonathan Frederic
d783812d9b
invoke css
11 years ago
Jonathan Frederic
06fe62fe96
Improved styling
11 years ago
Jonathan Frederic
2d835bd7ed
Put lists in an accordion
11 years ago
Jonathan Frederic
808916762e
Remove terminals page of the dashboard,
...
move contents into running tab.
11 years ago
Min RK
0dc618102e
fix stop-on-error test
11 years ago
Juergen Hasch
eb7d0b7e07
Use stop_on_error instead of skip_exceptions
11 years ago
Juergen Hasch
2f50bf9980
Skip exceptions
11 years ago
Matthias Bussonnier
9581e3e491
Reload list after creating a new folder in promises.
...
No need to reload session (I doubt creating a new folder create a
session), and does it once the creation drive promise return which make
the new directory appear in the listing for slow remote-backend (like
google drive)
11 years ago
Matthias Bussonnier
6c5a4ec115
Sanitize dialog text-body.
...
Mitigate 7486, could probably be improved, but
treat text as pure text, but assume that when received a dome
element it actually come from a secure source.
Sanitizing all we get, including Dom Element break json-metadata editor
and a few others.
11 years ago
Min RK
3ce0206a1f
promote "no terminals" message to warn
...
except on Windows, where it's demoted to debug
11 years ago
Min RK
ac7454b0d5
require terminado >= 0.3.3 for terminal handlers
11 years ago
Min RK
9d78b0dae6
toggle-buttons test
11 years ago
Min RK
1c2a28c6e2
wait for terminal to terminate
11 years ago
Min RK
884b305e10
hook up terminado logger
11 years ago
Thomas Kluyver
0009fcc22b
Merge pull request #7456 from minrk/change-not-dead
...
Don't show kernel-dead on manually shutdown kernel
11 years ago
Thomas Kluyver
9038e0d6a4
Add docstring for IntRangeSlider
...
Closes gh-5381
This was the last remaining widget class I could see without a docstring
11 years ago
Min RK
e2c52befff
Merge pull request #7433 from amcdawes/i7424
...
fixed Notebook Help item
11 years ago
Min RK
a152a481d0
don't set bootstrap toggle on ToggleButtonsWidget
...
model update already toggles active and data-toggle does the same,
so clicking on a toggle toggles twice, setting it back to the original value.
11 years ago
Andrew Dawes
bb37ee2d6d
changed to 3.x
11 years ago
Min RK
510c883728
Don't show kernel-dead on manually shutdown kernel
...
When there is no kernel, show 'No kernel',
and set kernel-busy instead of showing read dead and bomb.
This is different from kernel-dead
11 years ago
Min RK
0aedf1658f
Merge pull request #7417 from Carreau/logominpad
...
rework css media-query (and lots of css fixes)
11 years ago
Matthias Bussonnier
e6fd916ce7
Merge pull request #7474 from mathieu1/tooltip-prevent-default
...
Prevent page jump on tooltip actions
11 years ago
Matthias Bussonnier
851be20367
Merge pull request #7458 from minrk/superfluous-prevent-default
...
remove superfluous event.preventDefault
11 years ago
Thomas Kluyver
85d84ceb58
Merge pull request #7466 from minrk/interact-method
...
allow interact(instancemethod)
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
411a08bf09
rework css media-query
...
fixes #7355
Also limit the number of query "jump", and use variables.
In particular there was a container width discontinuity at 768 pixel
where below 768 container width is 100% and "only" 720px on wider
screen, making a jump.
So now Css media query have 3 breakpoints:
- <540 px with (aka -no name-)
- colapsed menubar
- vbox for prompt
- 100% width container
- 540 -> 767 (aka -xs- )
- expand menubar
- hbox fro prompt
- 767 -> 991 (aka -sm-)
- show save widget
- fix width (768px)
- 991+ (aka -md-)
- extra save widget info (date time)
- fix with of 991 px.
- 1200+ (aka -lg-)
- widht of 1200px.
of course we've set soem variable wrongly so this is still kinda-a-hack
as we shoudl have pushed the xs-sm limit lower instead of pushing the
nothing-xs limit up but I don't want to "fix it" now.
11 years ago
Bussonnier Matthias
4021e9d487
Do not leave toolbar element focused.
...
Can lead to enter re-trigerring them
(ok, can be a feature sometimes I guess)
closes #7475
11 years ago
Andrew Dawes
c86e6e8a87
fixed Notebook Help item as specified by ellisonbg
11 years ago
Mathieu
8936122110
prevent page jump on tooltip actions\n\nExpands the fix of #7367 to tooltip buttons
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
Matthias Bussonnier
e2d809222c
Merge pull request #7460 from minrk/kernel-indicator
...
set kernel-busy on kernel_created
11 years ago
Matthias Bussonnier
3e60745ca1
Smooth notebook scrolling on pager closing.
...
avoid brutal jump of notebook on closing pager, when notebook is scroll
to max
11 years ago
Matthias Bussonnier
d9303c8a14
Merge pull request #7470 from minrk/pager-straight-down
...
hide pager straight down
11 years ago
Matthias Bussonnier
1eb04fd583
Merge pull request #7438 from minrk/auto_highlight
...
move auto_highlight to Cell
11 years ago
Matthias Bussonnier
8b8437c4cc
Merge pull request #7443 from minrk/bold-is-always-broken
...
force Terminal.brokenBold=True
11 years ago
Matthias Bussonnier
c84a35da64
Merge pull request #7455 from minrk/new-notebook
...
fix new-notebook and change-kernel menus
11 years ago
Min RK
7479bf26e8
hide pager straight down
...
instead of shrinking into the corner
11 years ago
Thomas Kluyver
81f9f1b7f5
Merge pull request #7462 from minrk/rm-override
...
remove tree override.css
11 years ago
Thomas Kluyver
616a037689
Merge pull request #7461 from minrk/utf8-urls
...
escaped URLs are always utf-8
11 years ago
Min RK
ec1adebc1e
allow interact(instancemethod)
...
objects that can't have `.widget` attribute assigned
are wrapped in a lambda
11 years ago
Min RK
5f08e50830
discard invalid stream output
...
If a stream output is missing text,
log an error and discard the broken message
so it doesn't get into the notebook.
11 years ago
Min RK
e769c2c99e
remove tree override.css
11 years ago
Min RK
75678cc532
Merge pull request #7446 from bollwyvl/nbconvert-pdf-title
...
Set name/date for served notebooks
closes #7360
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
3f07a6d0f0
escaped URLs are always utf-8
11 years ago
Min RK
01da342708
set kernel-busy on kernel_created
...
rather than waiting for kernel_starting, which is only after kernel exists, but before connection is available
11 years ago
Min RK
5b4657e9c5
disable trust-notebook click event
...
when trust-notebook item is disabled
11 years ago
Min RK
4bd8335c0e
fix new-notebook and change-kernel menus
...
recent PR made all of these no-ops
also include missing dialog module
11 years ago
Min RK
a900545e78
Merge pull request #7440 from mathieu1/new-notebook-fix-list-logic
...
Fix kernel change breaking "new notebook" list
11 years ago
Matthias Bussonnier
f064f8e113
also fix action in kernelselector.js
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
Nicholas Bollweg
8c8eabf07f
removing spurious import
11 years ago
Nicholas Bollweg
8fb9d057d9
fixes #7360 by setting resources.metadata
11 years ago
Nicholas Bollweg
ac1c6f7ca8
#7239 : left-aligning text
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
Min RK
d48210701f
force Terminal.brokenBold=True
...
bold always seems broken
11 years ago
Min RK
da07d77f82
encode URI components in selection widget queries
...
avoids failure to find items when composing attribute queries
11 years ago
Mathieu
f3cfed13ac
fix kernel change breaking new notebook list
11 years ago
Min RK
ed6fa478f0
disable keyboard events on main toolbar
...
closes #5829
11 years ago
Min RK
490248ea93
move auto_highlight to Cell
...
consolidates nearly-identical CodeCell.auto_highlight and TextCell.auto_highlight
11 years ago
Min RK
0327b39a67
console.log
11 years ago
Min RK
b5abeb8ed6
kernelselector lint
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
Thomas Kluyver
2deb7d1f29
Update help link about Markdown
...
Closes gh-7428
11 years ago
Matthias Bussonnier
7df157f6e4
Make modal backdrop static by default.
...
does not dismiss dialog accidentally if click on faded area.
Closes #7403
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
Brian E. Granger
538381b028
Merge pull request #7397 from jasongrout/comprehension
...
Generate fontweight enum values without an extraneous variable from a comprehension
11 years ago
Min RK
3228719b26
fix highlight test for failed highlighting
...
not sure how this ever succeeded, but it's failing now
11 years ago
Matthias Bussonnier
4991b08d6c
Merge pull request #7387 from minrk/system-wide-nbextensions
...
allow system-wide installtion of nbextensions
11 years ago
Brian E. Granger
db10980a8f
Merge pull request #7401 from mathieu1/new-notebook-same-kernel
...
create new notebook with same kernel
11 years ago
Min RK
07b1e77d3b
path.sep
11 years ago
Min RK
9a1dba2c14
remove duplicate arg conflict check
11 years ago
Min RK
cebf80d881
s/nbextensions/nbextensions_dir
...
make it clearer from name that arg refers to dir
11 years ago
Min RK
f3da69c38d
allow system-wide paths for nbextensions
...
like kernel specs, default install is `/usr/local/share/jupyter/nbextensions`
add `--user` for .ipython/nbextensions path
11 years ago
Brian E. Granger
ab83599d36
Merge pull request #7389 from minrk/one-websocket
...
use single WebSocket connection for all channels
11 years ago
Min RK
a6800450e4
Merge pull request #7398 from jasongrout/body-classes
...
Split apart the body attributes and classes in the notebook templates
11 years ago
Min RK
3cf6eacc86
Merge pull request #7324 from quantopian/separate-checkpoint-manager
...
DEV: Refactor checkpoint logic out of FileContentsManager into a separate class.
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
Jason Grout
5dea7ad30b
Split apart the body attributes and classes in the notebook templates
11 years ago
Scott Sanderson
64e5c49608
DEV: Break get_checkpoint into separate methods.
...
One for notebooks and one for checkpoints.
11 years ago
Scott Sanderson
2569c3069d
STY: s/CheckpointManager/Checkpoints
...
It's easy to confuse CheckpointManager and ContentsManager.
11 years ago
Scott Sanderson
021e2da495
DEV: Separate FileCheckpointManager and GenericFileCheckpointManager.
...
- Adds a `GenericCheckpointMixin` as a helper for implementing the two
boundary-traversing Checkpoint API methods, `create_checkpoint` and
`restore_checkpoint`.
- `GenericFileCheckpointManager` is implemented as a subclass of
`FileCheckpointManager` using `GenericCheckpointMixin`. Note that
this is the safe subtyping relationship because of method
signature *contra*variance: `FileCheckpointManager` accepts
`FileContentsManager` in its method signatures type, whereas
`GenericFileCheckpointManager` accepts any `ContentsManager`.
- Moved Checkpoint-related classes to their own files.
11 years ago
Jason Grout
0bdfdc03ca
python3 does not like adding lists and map results
...
Thanks to @takluyver for pointing this out
11 years ago
Jason Grout
18cfbc0d11
Generate fontweight enum values without an extraneous variable from a comprehension
...
In python 2, the comprehension will create a new class attribute, i. Using a map will not create the extra local variable.
11 years ago
Scott Sanderson
12fe97e2af
DEV: Allow CheckpointManagers to optimize for shared backends.
...
On `create_checkpoint` and `restore_checkpoint`, pass a path and a
`ContentsManager` to `CheckpointManager` instead of an already-loaded
model.
The `CheckpointManager` base class provides a correct implementation of
these methods that's generic across any ContentsManager, but subclasses
are free to specialize when the storage backend of `ContentsManager` is
shared.
11 years ago
Scott Sanderson
55d4e20aaf
DEV: Remove ContentsManager.walk.
11 years ago
Scott Sanderson
2b73f1e620
DEV: Implement os.walk analog for ContentsManagers.
11 years ago
Scott Sanderson
1e2e86dcca
MAINT: Return dicts from CheckpointManager.get_checkpoint.
...
The output is going to get converted to a dict anyway, and this makes it
easier to pipe output from a CheckpointManager directly to a
ContentsManager.
11 years ago
Min RK
1cac03528b
use single WebSocket connection for all channels
...
multiplex on a 'channel' key in message,
rather than separate websockets.
Unlike zmq, there aren't different message patterns that require the channels to be separate.
Reduces FD count by factor of 3 and connection complexity in js.
11 years ago
Matthias Bussonnier
2b7568c13f
Merge pull request #7375 from minrk/empty-execute-result
...
ensure data, metadata are set in execute_results
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
Matthias Bussonnier
f51872c4c2
Merge pull request #7346 from jdfreder/terminal-page
...
Use page backdrop color in terminal page
11 years ago
Min RK
b891a50896
Merge pull request #7379 from juhasch/js-tests
...
Js tests
11 years ago
Jonathan Frederic
f79b914e5c
invoke css
11 years ago
Jonathan Frederic
f0da3c863c
Make headerbar -1 margin global
11 years ago
Juergen Hasch
5e641876da
fix insert_cell_at_index call in tests
11 years ago
Juergen Hasch
2fbf8835e1
fix insert_cell_at_index call in tests
11 years ago
Matthias Bussonnier
cc0efade88
Merge pull request #7376 from minrk/modal-z-index
...
recompile css
11 years ago
Min RK
c9c6b8d8a2
recompile css
...
it had fallen out of sync with updated bootstrap
11 years ago
Min RK
d2335ab000
handle missing data, metadata in validate_mimebundle
11 years ago
Min RK
9e3e5cfca7
store widget state in single key
...
rather than in a dict, which doesn't work without reserializing *all* stored widget states (of all notebooks), since localStorage only supports storing strings.
11 years ago
Min RK
ffaa09492a
Merge pull request #7315 from Carreau/codacy2
...
miscellaneous cleanup
11 years ago
Min RK
796b480922
Merge pull request #7359 from jdfreder/tab-fix
...
Accordion and Tab widget, fixes for ancient bugs.
11 years ago
Min RK
45d8afa32d
Merge pull request #7361 from quantopian/fix-extension-rename
...
BUG: Fix broken codemirror highlighting on file rename.
11 years ago
dongweiming
491046425d
fix widget description can not display when use --no-mathjax
11 years ago
Jonathan Frederic
ad546d89f9
Merge pull request #7341 from jdfreder/remove-popup
...
Remove the popup widget
11 years ago
Scott Sanderson
cbb196bb94
DOC: Add comment.
11 years ago
Scott Sanderson
782ac56768
BUG: Fix broken codemirror highlighting on file rename.
...
When a users uses the rename dialog in the text editor, we call
_set_mode_for_model on the returned model. The expected model to be
returned from rename has no value for mimetype, which causes us to pass
`undefined` to `CodeMirror.findModeByMIME`, which returns `undefined`
back. We then try access an attribute of the (undefined) return value,
causing an error.
This now properly checks whether the `mimetype` attribute is set on the
input model.
11 years ago
Scott Sanderson
7030a8717a
DEV: Add full support for non-notebook checkpoints.
11 years ago
Scott Sanderson
23837e9ad4
DEV: Remove unnecessary notary calls.
11 years ago
Matthias Bussonnier
a82db63916
Merge pull request #7330 from minrk/display-name
...
use 'Python X' for IPython kernel display name
11 years ago
Matthias Bussonnier
214195ce5f
Merge pull request #7327 from minrk/kernel-links
...
move Python-specific help links to kernel_info
11 years ago
Matthias Bussonnier
c0efca80ea
Merge pull request #7331 from minrk/fix-scroll
...
fix scroll actions
11 years ago
Matthias Bussonnier
ea5f2066af
Merge pull request #7340 from minrk/kernel-js-event
...
load kernel js, css, logo on spec_changed event
11 years ago
Matthias Bussonnier
41f24bbe2c
Merge pull request #7358 from jdfreder/persistence-page-specific
...
Associate widget state persistence with current URL.
11 years ago
Matthias Bussonnier
1e6f969c39
Merge pull request #7357 from jdfreder/error-overlay
...
When executing a cell, clear output and ignore queued animations.
11 years ago
Matthias Bussonnier
290dab0846
Merge pull request #7342 from jdfreder/wid-border-radius
...
Adjust widget border radius to match new notebook style
11 years ago
Jonathan Frederic
47c12abbf3
Fix a bunch of bugs with the accordion and tab widgets
11 years ago
Jonathan Frederic
8ad7cb3f4b
Associate persistence with URL
11 years ago
Jonathan Frederic
b37c5d21d0
When executing a cell, clear output and ignore queued animations.
11 years ago
Jonathan Frederic
edf737d111
invoke css
11 years ago
Jonathan Frederic
8ff7381ef3
Remove superfluous body tag from terminal less
11 years ago
Jonathan Frederic
8e54937893
Fixed pre-display "pixel-like" widget attribute parsing
11 years ago
Min RK
67abf3ddab
update kernelspec test
...
to expect Python display name
11 years ago
Jonathan Frederic
e2bb4ca875
invoke css
11 years ago
Jonathan Frederic
7b602f07cc
Use page backdrop with the terminal
11 years ago
Jonathan Frederic
d0ab0ad4aa
Display kernels in alphabetical order.
11 years ago
Jonathan Frederic
992976844d
Merge pull request #7302 from Carreau/1pix
...
a few 1 pixel fixes.
11 years ago
Jonathan Frederic
8d3f5b2865
invoke css
11 years ago
Jonathan Frederic
1a1c93b9d2
Remove modal less
11 years ago
Jonathan Frederic
2f982bd1e0
invoke css
11 years ago
Jonathan Frederic
239b4ab3dc
Fix widget radii
11 years ago
Jonathan Frederic
3f2dc88154
Remove the popup widget
11 years ago
Scott Sanderson
631a68d83e
TEST: Test separate roots for Contents and Checkpoints.
11 years ago
Scott Sanderson
f71f216880
DEV: More checkpoint API refactoring.
...
Changed the public checkpoint API to:
- `create_checkpoint(self, nb, path)`
- `get_checkpoint_content(self, checkpoint_id, path)`
- `rename_checkpoint(self, checkpoint_id, old_path, new_path)`
- `delete_checkpoint(self, checkpoint_id, path)`
- `list_checkpoints(self, path)`
All paths in the above are API-style paths, and the `nb` argument to
`create_checkpoint` is a dictionary suitable for passing to
`nbformat.write`.
The new `get_checkpoint_content` method returns an unvalidated notebook
content dictionary. It is used by `ContentManager.restore_checkpoint`
to load content to be written via `save`.
11 years ago
Min RK
2587cf710c
load kernel js, css, logo on spec_changed event
...
Ensures kernel.js is always loaded.
It wasn't being loaded when creating a new notebook with a particular kernel because `change_kernel` wasn't being called. Only the `spec_changed` event is triggered by all the various ways a kernel can be loaded,
so load kernel stuff on that event.
11 years ago
Min RK
026ec844f9
update new notebook button with kernelspec changes
...
display_name is in the spec, not top-level.
11 years ago
Matthias Bussonnier
c1d9f4d436
Merge pull request #7283 from minrk/kernel-spec-model
...
add resource URLs to kernelspec model
11 years ago
Min RK
c6b610f04f
make FilesRedirectHandler redirect logic accessible
...
from a static method
instead of calling FRH.get(self), which doesn't work on Python 2
due to unbound method class checking.
11 years ago
Min RK
86dca85890
handle deprecated files redirect on /notebooks
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
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
cb0c95575e
friendlier error messages when invoke/lessc are missing
...
and not needed.
11 years ago
Scott Sanderson
dc295f67bd
MAINT: Add missing `config=True`s.
11 years ago
Scott Sanderson
4da8a30f20
DEV: Refactor checkpoint logic from FileContentsManager.
...
- Add a `CheckpointManager` base class and infrastructure for creating a
`checkpoint_manager` instance attribute on `ContentsManager`.
- Provide default implementations of `delete` and `rename` in the base
`ContentsManager` class. `ContentsManager` subclasses are now
required to implement `delete_file` and `rename_file`. These methods
no longer need to manage checkpoints.
- Move checkpoint-related functionality from `FileContentsManager` to a
dedicated `FileCheckpointManager` subclass.
- Move shared filesystem interaction logic into `FileManagerMixin`
used by both `FileContentsManager` and `FileCheckpointManager`.
- Minor tweaks to ContentsManager tests to get methods from the right
object.
The purpose of this change is to provide an API for users to replace
just the checkpoint logic associated with a particular
`ContentsManager`. In particular, this change makes it possible to
easily support remote storage of checkpoints while otherwise retaining
normal filesystem interactions.
11 years ago
Brian E. Granger
df578b8835
Merge pull request #7307 from Carreau/remove-white
...
remove whitespace below menubar when toolbar hidden.
11 years ago
Brian E. Granger
87ab53bcfe
Merge pull request #7311 from Carreau/reform-css-2
...
Reform css 2
11 years ago
Brian E. Granger
dd2c077939
Merge pull request #7318 from Carreau/dialog-border-radius
...
fix border radius on element.
11 years ago
Matthias Bussonnier
031e829daf
stack vertically keyboard shortcut on narrow viewport.
11 years ago
Matthias Bussonnier
0165e97c7c
unify submenu style with menu style
...
closes #7303 .
Also change the arrow that indicate submenu for a fontawesoem icon,
instead of the ugly hack that show only the left border of a rectangle element
which with is twice the one of its border to get a triangle.
11 years ago
Matthias Bussonnier
39444a7190
fix border radius on element.
...
set a value to border-radius large, and actually make border radius
small smaller than border radius large.
Make dialog border radius coherent with the rest of the UI.
11 years ago
Min RK
52d37ca17a
Merge pull request #7312 from quantopian/refactor-contents-update
...
MAINT: Move `update` from FileContentsManager to ContentsManager.
11 years ago
Min RK
729c233f7d
Merge pull request #7308 from Carreau/reform-css
...
reformat css
11 years ago
Scott Sanderson
9aad3c631f
MAINT: Move `update` from FileContentsManager to ContentsManager.
...
The implementation in FileContentsManager is written entirely in terms
of the required API, and is sensible for other ContentsManager
implementations.
11 years ago
Matthias Bussonnier
160690f50a
reformat css
...
cause I want to inject some variable in it after (like border radius)
and a few other thigs.
This is just a reformating that does not change the generated css.
11 years ago
Min RK
d94479ad29
Merge pull request #7251 from Carreau/unregister-preset
...
add ability to unregister a preset
11 years ago
Matthias Bussonnier
54a3f47905
remove whitespace below menubar when toolbar hidden.
...
closes #7292
11 years ago
Min RK
47b41d980b
Merge pull request #7287 from Carreau/mistake
...
binary or is rare in JS
11 years ago
Jonathan Frederic
09b289d932
Merge pull request #7274 from Carreau/global-command
...
make global css change on command/edit mode
11 years ago
Matthias Bussonnier
27f3c224c2
a few 1 pixel fixes.
...
this uses the same html/css structure acroos the tabs, and reduce the overlay
click zone that expended the size of the header to 25px instead of 24px
11 years ago
Matthias Bussonnier
b003b62de4
Actually test that the j-nth cell.
11 years ago
Brian E. Granger
7b21e13705
Merge pull request #7242 from jdfreder/terminal-fixes
...
Some UI design changes for the Notebook and associates
11 years ago
Jonathan Frederic
34c08c035f
New file open editor
11 years ago
Jonathan Frederic
6e86c7645b
Fix JS test new button selector
11 years ago
Jonathan Frederic
9e3b18605a
Reverse order of file/folder and notebooks in new menu
11 years ago
Jonathan Frederic
e593e6a123
Dont prompt for name.
11 years ago
Jonathan Frederic
2c43bc60ae
invoke css
11 years ago
Jonathan Frederic
e0adde46f3
New new button
11 years ago
Jonathan Frederic
849c96ae61
Merge pull request #7268 from Carreau/ungroup-button
...
ungroup button on dashboard
11 years ago
Jonathan Frederic
c6548ebe0e
Merge pull request #7288 from Carreau/that/this
...
remove that.
11 years ago
Matthias Bussonnier
7a295d1924
Merge pull request #7273 from Carreau/content-no-namespace
...
Do not inject self in IPython namespace
11 years ago
Matthias Bussonnier
123c0f3b28
remove that.
11 years ago
Matthias Bussonnier
6b57f44bf6
ungroup button on dashboard
...
fix a few instanced of button toolbar that were not with the right class or not in btn groups.
11 years ago
Matthias Bussonnier
1dfdda6e97
binary or is rare in JS
11 years ago
Min RK
43da311f5e
add Notebook.ensure_extension
...
allows override of file-extension logic in notebook extensions
11 years ago
Matthias Bussonnier
06d4d1505a
Merge pull request #7266 from Carreau/shutdown-orange
...
make shutdown yellow/orange
11 years ago
Min RK
e7b6d5dec3
update kernelspec model tests
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
Min RK
ad995dfdb8
Merge pull request #7244 from minrk/rm-signature
...
don't store signatures in notebooks
11 years ago
Thomas Kluyver
217e758e3d
Merge pull request #7264 from dongweiming/custom_js_3.0
...
Update custom.js for 3.0
11 years ago
dongweiming
85a2a88396
Update custom.js for 3.0
11 years ago
Thomas Kluyver
fa7423383e
Merge pull request #7191 from minrk/contents-test-reuse
...
abstract some methods in contents service tests
11 years ago
Min RK
4404c7ea2b
checkpoint
11 years ago
Min RK
979eb2d281
don't enforce .ipynb extension in URLs
...
let ContentsManager decide what's a notebook
11 years ago
Min RK
db5147998d
docstring on test_dir
11 years ago
Thomas Kluyver
eb93afeaf8
Merge pull request #7254 from quantopian/type-not-dotted-object
...
MAINT: Use `Type` instead of `DottedObjectName` for managers.
11 years ago
Bussonnier Matthias
9c959ce6b1
correct variable name
11 years ago
Bussonnier Matthias
15ab64e884
make global css change on command/edit mode
11 years ago
Bussonnier Matthias
eaf8fdc4f9
Do not inject self in IPython namespace
...
And do not require nemaespace either
- this is bad practice, and this prevent from
writing a blended content manager that works both
with drive and localhost as they shoudl both export
themselves to IPython.Contents module.
11 years ago
Scott Sanderson
acf011bd9c
DEV: Tweaks to Login/LogoutHandler setup.
...
- Require handlers to be tornado.web.RequestHandlers. Rename the
- NotebookApp attributes from log{in,out}_handler to log{in,out}_handler_class.
11 years ago
Jonathan Frederic
7926c36b0d
Remove right margin from the terminal
11 years ago
Jonathan Frederic
8d2e57e3ef
invoke css
11 years ago
Jonathan Frederic
028b79b385
Move kernel logo to right margin.
11 years ago
Jonathan Frederic
fd5659427d
invoke css
11 years ago
Jonathan Frederic
2c714357c4
Review comments
11 years ago
Jonathan Frederic
359bc2e1bc
invoke css
11 years ago
Jonathan Frederic
096b1638bf
Remove padding on editor
11 years ago
Jonathan Frederic
7daba81475
invoke css
11 years ago
Jonathan Frederic
cda53215ba
Improve edit app
11 years ago
Jonathan Frederic
b81a9f6bc6
invoke css
11 years ago
Jonathan Frederic
972065ad22
Additional aesthetic clean-up
11 years ago
Jonathan Frederic
461b2e74b6
invoke css
11 years ago
Jonathan Frederic
94a893d975
Prevent terminal from scrolling
11 years ago
Jonathan Frederic
fbc2adf2d5
Make things consistent
11 years ago
Jonathan Frederic
4e7832cf64
invoke css
11 years ago
Jonathan Frederic
726c95cbff
Address review comments
11 years ago
Bussonnier Matthias
2b0147c21a
no shadow on print media
...
Also hide celltoolbars
11 years ago
Matthias Bussonnier
6e9ef7abeb
Style notebook as a document
11 years ago
Jonathan Frederic
4d62ad0df6
invoke css
11 years ago
Jonathan Frederic
79fe99d124
Make terminal pretty
11 years ago
Jonathan Frederic
3969f0ec84
Move terminal less into better location
11 years ago
Jonathan Frederic
f8968df7e2
Merge pull request #7148 from minrk/kernel-selector
...
remove kernel selector from header
11 years ago
Bussonnier Matthias
bb61df5c35
make shutdown yellow/orange
11 years ago
Jonathan Frederic
196478b765
Merge pull request #7260 from takluyver/widgetvaluedefaults
...
Widget values as positional arguments
11 years ago
Matthias Bussonnier
27c90f1da3
Merge pull request #7087 from nheijermans/master
...
Enable the IPython Notebook to display messages from other clients.
11 years ago
Scott Sanderson
8e2286911d
DEV: Set `klass=object` for Log{in,out}Handler.
...
It seems plausible that people will implement custom handlers that
aren't subclasses of a known type.
Another possible option would be `IPythonHandler`, but even that feels
too restrictive.
11 years ago
Scott Sanderson
0953de3432
MAINT: Remove unused imports.
...
I was in the neighborhood...
11 years ago
Scott Sanderson
8ab449cd9a
MAINT: Use `Type` instead of `DottedObjectName` Log{in,out}Handler.
11 years ago
Scott Sanderson
23b3a332f9
MAINT: Use `Type` instead of `DottedObjectName` for managers.
...
`Type` is strictly more powerful than `DottedObjectName` and is easier
for users to override.
11 years ago
Thomas Kluyver
0c3c3b3c79
Fix instantiating config in editor and terminal
11 years ago
Thomas Kluyver
e2139e7190
Fix module name
11 years ago
Thomas Kluyver
01331514bd
Load common_config, and load extensions specified therein
11 years ago
Thomas Kluyver
c719d2fe83
Refactor out load_extensions_from_config function
11 years ago
Min RK
00e4ad59c0
add counter to new notebooks in test_manager
...
ensures brand new notebooks are untrusted
previously, all new notebooks were identical,
so once one was trusted, they would all start trusted.
11 years ago
Thomas Kluyver
9c0fb7bf68
Use more conventional *args naming over *parg
11 years ago
Thomas Kluyver
cbb685b314
Fix copy-pasted super() call
11 years ago
Jason Goad
cda015340c
added value positional argument to applicable widgets
11 years ago
Jason Goad
7bcced9da0
widget fix?
11 years ago
Scott Sanderson
a1ad9abe51
MAINT: Unicode literal in assertDictContainsSubset
11 years ago
Scott Sanderson
4a2149d1c3
TEST: Add a non-notebook file to directory test.
11 years ago
Scott Sanderson
af7d1cdb50
STY: Define dirs as a single expression.
11 years ago
Scott Sanderson
f7cf204b25
BUG: Convert to bytes before comparing binary blobs.
11 years ago
Scott Sanderson
e9b81b6c7a
TEST: Verify base64 return values after decoding.
11 years ago
Scott Sanderson
fcc1bbecb3
MAINT: Remove unused blob and b64_blob attributes.
11 years ago
Scott Sanderson
f20a7b41cb
TEST: Abstract out directory/file deletion methods.
11 years ago
Scott Sanderson
46f299ccf2
TEST: Refactor symlink tests.
11 years ago
Min RK
a4b47e7e8a
move symlink tests to TestFileManager
11 years ago
Scott Sanderson
61c2e0442f
TEST: Add checks for subdirectory name splitting.
...
Previously the tests failed to catch a bug where a ContentsManager
didn't split name from path in a nested subdirectory.
11 years ago
Scott Sanderson
c7ca3066ec
TEST: More fine-grained test for directory contents.
...
Verify that each entry in a directory listing matches the result of a
content-less direct get.
11 years ago
Scott Sanderson
23e5e6da4f
TEST: Expect a 404 on delete of non-existent file.
11 years ago
Scott Sanderson
6bfab2de08
BUG: Allow for the possibility that to_path is empty string.
...
This is a legal input for representing the root directory.
11 years ago
Scott Sanderson
44805b94db
BUG: Sanitize to_path in ContentsManager.copy.
...
Without this, one of the test cases in `test_copy` attempts a copy to a
directory that starts with a leading double-slash.
11 years ago
Scott Sanderson
7ab1bf7487
BUG: Set default mimetype when base64 is requested
11 years ago
Min RK
c166a05f5d
abstract some methods in contents service tests
...
should allow re-use for ContentsManager subclasses
11 years ago
Min RK
53d1f1b1a1
Merge pull request #7259 from takluyver/kernelspec-head-error
...
Fix HEAD requests for kernelspec resources
11 years ago
Thomas Kluyver
c7f2a8689e
Merge pull request #7253 from minrk/async-contents-handlers
...
allow ContentsManager methods to return Futures
11 years ago
Thomas Kluyver
49fbae9751
Fix HEAD requests for kernelspec resources
...
Closes gh-7237
Closes gh-7258
StaticFileHandler.get() is a coroutine. When Tornado calls a handler
method, it uses the return value to determine whether or not it's a
coroutine. So when head() calls get(), it needs to pass the return value
on for Tornado to handle it properly.
11 years ago
Min RK
41b548bacc
use gen.Return for Python 2
11 years ago
Min RK
da95c496d9
transparent gif placeholder src
...
avoids invalid empty src
11 years ago
Min RK
9f9714e11f
remove kernel logo text placeholder
11 years ago
Min RK
da88bff678
add text placeholder for kernels with no logo
...
capital first initial on gray field
11 years ago
Min RK
d5f6aaa1f6
remove kernel selector from header
...
- add kernel name to indicator
- float kernel logo where indicator used to be
11 years ago
Min RK
dc70ae6b07
allow ContentsManager methods to return Futures
...
mainly adding `@gen.coroutine` and `yield gen.maybe_future` all over the place.
No FileContentsManager methods are actually async at this point.
11 years ago
Brian E. Granger
6c55690994
Merge pull request #7227 from jdfreder/undead
...
Add visual cue for widgets with dead comms
11 years ago
Jonathan Frederic
e7370be7cc
invoke css
11 years ago
Jonathan Frederic
79fd5c3fed
Address comments
11 years ago
Thomas Kluyver
5a5f621591
Merge pull request #7247 from Carreau/fix-restore-checkpoint
...
fix restore checkpoint add an empty cell
11 years ago
Thomas Kluyver
2dbc8f5304
Merge pull request #7248 from Carreau/config-ctm
...
pass config to contentsManager
11 years ago
Bussonnier Matthias
f0c5de7c7e
make method private
11 years ago
Min RK
0c39228307
Merge pull request #7250 from Carreau/kspecbase
...
fix logo on base_url prefix
11 years ago
Bussonnier Matthias
ddbd7aa4fa
add ability to unregister a preset
...
fix #7218
11 years ago
Jonathan Frederic
6b2333fc51
Merge pull request #7229 from jdfreder/tab-rename
...
Tab rename - s/Notebooks/Files
11 years ago
Bussonnier Matthias
3bce53e32e
fix logo on base_url prefix
11 years ago
Bussonnier Matthias
51f1cad6e4
pass config to contentsManager
11 years ago
Bussonnier Matthias
df418c6a62
fix restore checkpoint add an empty cell
11 years ago
Matthias Bussonnier
449384e85f
Merge pull request #7224 from jasongrout/fix-toolbarjs
...
Fix javascript iteration through array
11 years ago
Matthias Bussonnier
7eb4d1b84d
Merge pull request #7225 from Carreau/fix-actions
...
fix leading underscore
11 years ago
Matthias Bussonnier
efbe695523
Merge pull request #7226 from takluyver/win-sleep-session-tests
...
Add a brief sleep after shutting down sessions in test teardown
11 years ago
Matthias Bussonnier
420f2337de
Merge pull request #7195 from Carreau/manager
...
generalise manager
11 years ago
Jonathan Frederic
ab1fca9fdb
Prevent the page from jumping on tree tab change
11 years ago
Jonathan Frederic
a485fe42ea
s/Notebooks/Files
11 years ago
Jonathan Frederic
d9346c002d
invoke css
11 years ago
Jonathan Frederic
9e67a34891
Bubble event and implement logic in CodeCell
11 years ago
Matthias Bussonnier
5829ceacb9
s/Json/JSON/g **/*.py
11 years ago
Thomas Kluyver
0178e2add0
Add a brief sleep after shutting down sessions in test teardown
...
This fixes a test failure for me on my Windows VM. See the comment for
details.
11 years ago
Matthias Bussonnier
420fee5e4c
Merge pull request #7163 from jdfreder/refresh-persist
...
Persist widgets across page refresh
11 years ago
Thomas Kluyver
b408a9bf74
Merge pull request #7167 from minrk/less-2
...
pin less to 2.x
11 years ago
Jonathan Frederic
2d40eb30d4
Make sure comm-dead is applied to the top widget view class
...
in all cases where the kernel disconnects.
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
Min RK
420b98dfee
Merge pull request #7177 from Carreau/valid-html
...
Valid html
11 years ago
Bussonnier Matthias
737064d9db
fix leading underscore
...
mering object with itself is stupid otherwise
11 years ago
Jason Grout
efc1fee242
Fix javascript iteration through array
...
for(var k in config) was assigning k to the properties of Array, not just the numeric indices
the second argument of add_buttons_group, k[1], should be config[k][1]
11 years ago
Matthias Bussonnier
031252d44f
Merge pull request #7207 from takluyver/rm-nb-user-config
...
WIP: Remove js user_config module
11 years ago
Matthias Bussonnier
3a16eed2aa
Merge pull request #7204 from jasongrout/widget-warning2
...
Make the widget warning brief and easy to filter
11 years ago
Matthias Bussonnier
791676006d
Merge pull request #7186 from minrk/moment
...
moment.js-related fixes
11 years ago
Thomas Kluyver
95e60a544c
Update test to modify class config for default_cell_type
11 years ago
Kyle Kelley
4f4e14342b
Merge pull request #7172 from Carreau/sort-dashboard
...
Sort dashbord list in frontend
11 years ago
Matthias Bussonnier
4bd9ac7882
Add json in the base config manager name
11 years ago
Bussonnier Matthias
6f38f7b014
generalise manager
11 years ago
Min RK
7c8f2fd0f5
fix widget-import-warning test
...
wasn't updated with warning changes
11 years ago
Brian E. Granger
bd57d219fc
Merge pull request #7199 from takluyver/python-logo
...
Use Python logo for IPython kernel
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
Jason Grout
c73933fe90
Make the widget warning easier to catch by specifying the module.
11 years ago
Jason Grout
5c24d8dfb1
Change IPython widget warning to get rid of filenames and line numbers
...
We do this to not confuse the interactive user
11 years ago
Thomas Kluyver
e51f3ff8d5
Merge pull request #7187 from minrk/utils-js
...
various fixes in utils.js
11 years ago
Thomas Kluyver
27ad247f9d
Enlarge Jupyter logo to 28px height
11 years ago
Nathan Heijermans
408e3fa557
Backing out all changes to the UI and notebook.js.
...
Updated kernel.js to trigger the ``received_unsolicited_message.Kernel`` event instead. Notebook extensions can handle the event in whatever way they deem appropriate.
A notebook extension that takes advantage of this is available at https://github.com/nheijermans/nbexts.git .
11 years ago
Brian E. Granger
27144e51ff
Merge pull request #7162 from jdfreder/persist-fixes
...
Widget persistence fixes
11 years ago
Brian E. Granger
e090b609d1
Merge pull request #7169 from jdfreder/pager-style
...
Make the new pager look better
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
Min RK
6661a0a301
fix regular checkpoint updates in notebook
...
in master, this was updating every 10 hours,
regardless of the value, due to a variety of bugs,
including using relativeTimeThreshold getters
that do not exist in moment.js 2.7.
11 years ago
Min RK
b11fe93abb
add utils.time
...
consolidate some time-related utils, used in save widgets
11 years ago
Min RK
982a742112
Merge pull request #6700 from Carreau/actions-2
...
Use notebook actions in toolbar
11 years ago
Brian E. Granger
e61188a4c8
Merge pull request #7201 from jasongrout/widget-warning
...
Make the widget error message shorter and more understandable.
11 years ago
Jason Grout
e489718d5c
Make the widget error message shorter and more understandable.
11 years ago
Thomas Kluyver
7454b25dc0
Probably don't need text styles on an img tag
11 years ago
Brian E. Granger
8ea37a4b2b
Merge pull request #7200 from jasongrout/widget-warning
...
Make the widget experimental error a real python warning
11 years ago
Min RK
42a92d4794
Merge pull request #6896 from minrk/save-hooks
...
Proposal: add pre/post-save hooks
11 years ago
Jason Grout
c8d70e0603
Make the widget experimental error a real python warning
...
This means it can easily be turned off too.
11 years ago
Min RK
cadd5a14fe
Merge pull request #6747 from jdfreder/combofix
...
Make Selection widgets respect values order.
11 years ago
Jonathan Frederic
ab409d1966
Hide variables that shouldn't be exposed to the user
11 years ago
Jonathan Frederic
45eadcd06c
invoke css
11 years ago
Bussonnier Matthias
9a6f282129
do not try to fix mathjax URl
11 years ago
Bussonnier Matthias
cd67e1aca7
return elements instead of append them directly
...
+ jshint fixes
11 years ago
Bussonnier Matthias
8fc6d2ff1f
saving notebook does not run cell.
...
Thus running cell instead of saving notebook
11 years ago
Bussonnier Matthias
89edf7c099
fix ordering dirs > notebook> files
11 years ago
Bussonnier Matthias
59f5b9199d
just indent everythin twice
11 years ago
Bussonnier Matthias
1b2305c475
emit valid html:
...
Not closed div, <a> don't have alt but title, chrome frame has been
closed for at least a year, IE shoudl use edge mode. div cannot embed
span.
11 years ago
Min RK
1512598b83
various fixes in utils.js
...
revealed by linters
- remove duplicate WrappedError definition
- regex_split doesn't actually allow string separator
- remove various unused variables
- fix some incorrect regex escaping
- add missing quotes in $('body')
- remove a `for(attr in object)` because javascript
11 years ago
Jonathan Frederic
c5de028039
invoke css
11 years ago
Jonathan Frederic
12ef806b58
Thinner handle, single handlebar
11 years ago
Thomas Kluyver
0f2f14556c
Note that extension API is experimental
11 years ago
Thomas Kluyver
7e7d3d1f25
Rename extensions -> server_extensions
11 years ago
Thomas Kluyver
e86d80e84a
Add support for notebook server extensions
...
As some people may be tiring of my pointing out, it seems strange that
we have extension points for the JS and the kernel, but none for the
notebook server.
For cite2c, I want to add a handler which can serve a directory of style
files for use by the nbextension part.
11 years ago
Bussonnier Matthias
09b4d91ad0
sort dashbord in frontend
11 years ago
Bussonnier Matthias
07c6dd8b5d
move setting nb.kernelselector inside kernelselector itself
11 years ago
Bussonnier Matthias
7a3a61fe81
make pseudo action in their own dcit.
...
make test more reliable by adding data-attributes to buttons.
11 years ago
Bussonnier Matthias
08dbdb1640
note to self
11 years ago
Matthias Bussonnier
199483b82d
fix rebase after kill of layout manager
11 years ago
Jonathan Frederic
c897b66031
invoke css
11 years ago
Jonathan Frederic
eb34a4c6c2
Add shadow to pager handle
11 years ago
Jonathan Frederic
d5a4739636
invoke css
11 years ago
Jonathan Frederic
9879a3c16c
Make the pager look better
11 years ago
Thomas Kluyver
f2e1b6f65f
Merge pull request #7145 from minrk/type____
...
ContentsManager type kwarg to match model key
11 years ago
Min RK
16d06a7f1d
pin less to 2.x
...
1.7.x causes different results, and it's probable that 3.x will as well.
It might even be appropriate to pin to 2.1.x.
11 years ago
Jonathan Frederic
b1b88a7855
Merge pull request #7147 from jdfreder/print
...
Meta-p for print
11 years ago
Jonathan Frederic
3b11cc66a7
Make widgets persist across page refresh
11 years ago
Jonathan Frederic
272f281b03
Merge pull request #7161 from jdfreder/promise_fix
...
Another widget promise bug fix
11 years ago
Jonathan Frederic
3d9e43f0c4
Fix persistence API,
...
it expecited a view dictionary not a dictionary of view promises
11 years ago
Matthias Bussonnier
2d51cec3c8
adresses Min comments x2
11 years ago
Bussonnier Matthias
fc6f562317
complete unicode mac symbol
11 years ago
Bussonnier Matthias
e292a82dff
Fix comments
...
move humanize-map out of function call to have only one instance
11 years ago
Bussonnier Matthias
5be62ba538
fix john coments
11 years ago
Matthias Bussonnier
f43d8585d1
Add notion of actions to celltoolbar
...
modify toolbar.js to be able to deal with actions.
modify maintoolbar to deal with the new action architecture
add a way to triger notification widget hiding
11 years ago
Matthias Bussonnier
f1a167ee19
add an humanize function that prettify shortcut on macos
11 years ago
Thomas Kluyver
4dd8efd043
Merge pull request #7160 from minrk/toolbar-layout
...
remove references to defunct layout_manager in ToolBar
11 years ago
Jonathan Frederic
88d8d85987
Another widget promise bug fix
11 years ago
Jonathan Frederic
51fc7241da
Another widget promise bug fix
11 years ago
Jonathan Frederic
73637fb694
Merge pull request #7097 from jasongrout/widget-visibility
...
Expand the semantics of the widget visible attribute to allow for visibility: hidden
11 years ago
Jonathan Frederic
4842d48ace
invoke css
11 years ago
Jonathan Frederic
bdb0e9dd7a
Move header styles into base less
11 years ago
Jonathan Frederic
d58d3a65a3
invoke css
11 years ago
Jonathan Frederic
f497d06d0c
Avoid using important
11 years ago
Min RK
73c33f402c
remove references to defunct layout_manager in ToolBar
11 years ago
Thomas Kluyver
4c62fd4210
Merge pull request #7149 from minrk/thread-nb
...
run test notebook server in thread
11 years ago
Jonathan Frederic
095d8b2feb
Merge pull request #7143 from jasongrout/viewlist-promises
...
Update viewlists to store a list of promises for views
11 years ago
Jason Grout
967d83104f
Missing return
...
Thanks to @jdfreder for catching this in review!
11 years ago
Matthias Bussonnier
912c4bb683
adresses Min comments
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
Min RK
99bac366af
Merge pull request #7140 from quantopian/validate-contents
...
DEV: Validate models returned from ContentsManager methods.
11 years ago
Jonathan Frederic
1c499334c7
Merge pull request #7146 from jdfreder/interact-fix
...
Fix Dropdown widget page scroll issue
11 years ago
Jonathan Frederic
3ea8929b82
Merge pull request #6454 from jasongrout/links
...
Javascript link
11 years ago
Scott Sanderson
2216b9522c
DEV: Tweaks from PR feedback.
...
- Reformat expected keys for in `validate_model`.
- Require `'mimetype'` to be non-None only when the model being
validated is a file.
- Add more information to the error when keys are unexpectedly non-None.
11 years ago
Min RK
e890122c3e
Merge pull request #6537 from takluyver/kernelspec-logos
...
Initial support for supplying kernel logos in kernel spec
11 years ago
Min RK
7d465c7e96
Merge pull request #7139 from jdfreder/widget-space-fix
...
Fix padding of widgets.
11 years ago
Scott Sanderson
70eb9e219f
DOC: Add docstring for validate_model.
11 years ago
Scott Sanderson
a45b8a0c67
DEV: Validate models returned from ContentsManager methods.
11 years ago
Jonathan Frederic
bf18e09521
invoke css
11 years ago
Jonathan Frederic
b29d81ee23
Add LESS that enables meta-p printing
11 years ago
Min RK
22e206de6f
ContentsManager type kwarg to match model key
...
remove `_` suffix, making it consistent with models,
REST API, etc.
11 years ago
Jason Grout
8cf5972f57
Add the unlink method to javascript links to maintain compatibility with traitlet links
11 years ago
Jason Grout
4496bfc6bd
Fix a bug in using promises with comms: this -> that
11 years ago
Jonathan Frederic
cecf05efb2
Fix bug where selection box modification would cause page to scroll to the top
11 years ago
Thomas Kluyver
3e2f6dba98
logo-64 -> logo-64x64
11 years ago
Thomas Kluyver
4cee2f5f3a
Merge pull request #7128 from minrk/more-v-less-m
...
A little more V, a little less M in the text editor
11 years ago
Thomas Kluyver
7cc07251e4
Use double resolution logo to support hires displays
11 years ago
Jason Grout
49541066f1
Update viewlists to store a list of promises for views
11 years ago
Min RK
615ff9f138
Merge pull request #6789 from jdfreder/persistence2
...
Widget persistence API
11 years ago
Thomas Kluyver
cad0c32137
Hide kernel logo if it's missing
11 years ago
Thomas Kluyver
f123b0d2ad
Initial support for supplying kernel logos in kernel spec
11 years ago
Jonathan Frederic
2cc041444a
Explicit 2.5px
11 years ago
Jonathan Frederic
cf9b092013
Use once instead of on
11 years ago
Matthias Bussonnier
134488637c
Merge pull request #6977 from minrk/finish-5384
...
Add authentication configuration
11 years ago
Thomas Kluyver
9f48e86477
Merge pull request #7136 from minrk/octet-stream
...
set default mimetype to octet-stream for binary files
11 years ago
Jonathan Frederic
cb12229480
Fix padding of widgets.
11 years ago
Jonathan Frederic
52c8f14223
Added changes discussed with @jasongrout
11 years ago
Jonathan Frederic
152982efcd
Updated comments to new style.
11 years ago
Jonathan Frederic
0978065269
Remove view.show
11 years ago
Jonathan Frederic
a56a6f5657
Document set_state_callbacks and,
...
make load_state callback support promises.
11 years ago
Jonathan Frederic
0c737867fe
Rebase fixes
11 years ago
Jonathan Frederic
16e3bad23f
Address @jasongrout 's review comments, take 2
11 years ago
Jonathan Frederic
5d4b83ba4a
Add an event that fires before the notebook saves
11 years ago
Jonathan Frederic
71d2d47036
Fix, only return views that are direct children of the cell
11 years ago
Jonathan Frederic
a53f4cc9dd
Log save state callback failures
11 years ago
Jonathan Frederic
db62a210e7
Another that = this
11 years ago
Jonathan Frederic
f060947eb9
This, that, and the other thing
11 years ago
Jonathan Frederic
8a5770b811
Add convenience API
11 years ago
Jonathan Frederic
e02a5ec201
Promises...
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
Scott Sanderson
ccc8cb9cbf
Minor cleanups in the contents API.
...
Noticed while poking around with a linter enabled.
11 years ago
Min RK
f0181836b2
run test server in thread
...
instead of subprocess
11 years ago
MinRK
1ec9cfc25c
use IOLoop.current in a few places
...
better allow notebook server to run in a thread
11 years ago
Min RK
407e63cb80
set default mimetype to octet-stream for binary files
...
mimetype only specified if content=True
11 years ago
Nathan Heijermans
4925ea3e44
Fixed inverted logic caused by renaming variables.
11 years ago
Nathan Heijermans
4440337711
Removed keyboard shortcut.
11 years ago
Min RK
6c4f8de34a
wrap lines by default
...
because long lines are not handled well
11 years ago
Thomas Kluyver
8160308bb2
Merge pull request #7120 from Carreau/fix-widget-load
...
lazy load widgets
11 years ago
Min RK
1e5bd77bda
s/mode/language/
...
for user-facing CodeMirror mode (hover text, language menu)
11 years ago
Min RK
c81609f5d6
redirect /edit/ to /files/ if not (utf8) text
11 years ago
Min RK
85fb8e1085
use $.map for setting cm options
11 years ago
Min RK
8c2ced501d
address review in custom auth
11 years ago
Min RK
c71d4162e3
make logout_handler overridable
11 years ago
Min RK
dbb5e9a107
allow LoginHandler to override get_current_user
11 years ago
Min RK
bb01b716e0
allow login_handler to be undefined
...
(for use outside IPython)
11 years ago
Min RK
16d1f0fd84
update custom auth per review
...
- pass settings around, not applications
11 years ago
Phil Elson
d81990c941
Added authentication configuration for the notebook app.
11 years ago
Min RK
7ede5e291f
update mode on rename
11 years ago
Min RK
03779746ab
Toggle line numbers in menu
...
use 'Toggle' text, instead of switching between Show/Hide
11 years ago
Min RK
0b8920193f
add Mode menu to editor
11 years ago
Min RK
a53d467243
update edit page blocks after layout changes
11 years ago
Min RK
0cc0dead5d
add File/Rename
11 years ago
Min RK
d6282035fa
add save widget to text editor
11 years ago
Min RK
c58070a702
make savewidget css a little more generic
...
- use classes instead of IDs
- use .filename instead of #notebook_name
11 years ago
Min RK
0dfcc1b512
expect JSON reply to save
11 years ago
Min RK
c238553a4e
set application/json on contents model replies
11 years ago
Min RK
2452c0c2f7
checkpoint
11 years ago
Min RK
928c81df9d
setting an option to null sets the default in CodeMirror
...
matching the unset behavior in config
11 years ago
Min RK
c8a1f06179
fixup keyMap
11 years ago
Min RK
54324633ca
fixup
11 years ago
Min RK
0c42d3659e
add File/New in editor
11 years ago
Min RK
ab7b35afdb
link to /edit/ on files
11 years ago
Min RK
85b6b280b2
allow selecting codemirror keymap in menu
11 years ago
Min RK
9a504dd7c3
basic LESS for editor
11 years ago
Min RK
776c9a0316
track dirty state in editor for onbeforeunload
11 years ago
Min RK
0efd335553
editor progress
...
- load/store codemirror config
- fill out menus a bit:
- Edit/find,replace
- View/toggle line numbers
11 years ago
Min RK
ee00dcf083
docstring
11 years ago
Min RK
f2343e4ec5
update `--script` behavior to use `nbconvert --to script`
11 years ago
Min RK
1731b9b449
`--script` triggers post_save hook with nbconvert
11 years ago
Min RK
58c0a97ec3
add pre/post-save hooks
...
- `ContentsManager.pre_save_hook` runs on the path and model with content
- `FileContentsManager.post_save_hook` runs on the filesystem path and model without content
- use pre_save_hook for things like stripping output
- use post_save_hook for things like nbconvert --to python
11 years ago
Min RK
0b46e2aff2
remove some custom css
...
mainly in navbars, where we were doing custom
things that bootstrap already did with classes.
This did require the removal of multiple class LESS inheritance for
navbar buttons, because it doesn't work properly. Seems like a LESS bug, but I'm not sure.
11 years ago
Thomas Kluyver
11f089aedb
Handle nbserver info files without pid, from IPython 2.x
...
Fixes takluyver/nbopen#9
11 years ago
Bussonnier Matthias
affdb6a8ff
fix test
11 years ago
Nicholas Bollweg (Nick)
d3601f90ef
checking in css
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)
eef949eda9
fixing tests
11 years ago
Nicholas Bollweg (Nick)
8f5b447eaf
removing monkeypatch, importing rest of codemirror default theme
11 years ago
Nicholas Bollweg (Nick)
68c4714338
using codemirror mode/meta for detection
11 years ago
Nathan Heijermans
8d5cc15ea1
Merge remote-tracking branch 'upstream/master'
11 years ago
Nathan Heijermans
4617afdb13
Increased notification message display time.
11 years ago
Nathan Heijermans
7bb61cc34b
Updated terminology to match the console/qtconsole
...
config settings and documentation more closely.
Unsolicited messages => output from other clients.
11 years ago
Matthias Bussonnier
a9fffc41ab
Merge pull request #6950 from minrk/new-new-dropdown
...
Add kernel-select dropdown to new notebook button
11 years ago
Thomas Kluyver
615f5dd13a
Merge pull request #7118 from minrk/script-dispatch
...
Dispatch to custom exporter in ScriptExporter
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
Min RK
befb16ebe3
Merge pull request #6948 from bollwyvl/graceful-mathjax-widgets
...
Ignore failure of widget MathJax typesetting
11 years ago
Min RK
b10ebdad4b
s/current_selection/default_kernel/
11 years ago
Min RK
6a1cebe4c0
minor reflow of tree header
...
- remove absolutely positioned text (absolute text doesn't wrap correctly)
- associate hidden upload directly with 'click here' via span
- remove column split, rely on regular reflow
11 years ago
Min RK
371b031f40
informative hover text for current selection
11 years ago
Min RK
d1bda196b7
remove some weird tabs
...
How did they get there? We may never know...
11 years ago
Min RK
fbaae651ad
remove UI for setting default kernel
...
can be set with:
IPython.new_notebook_widget.set_default_kernel('kernel_name')
11 years ago
Min RK
8eb6ec00d8
store current kernel selection in frontend config
...
instead of localStorage
11 years ago
Min RK
11ef669ec6
kernelspecs is a dict
...
sort menus client-side
11 years ago
Min RK
d9767e8c94
separate selecting default kernel from new notebook with specified kernel
...
adds checkmark to indicate selection
11 years ago
Min RK
0cfd8731a0
include current kernel name in new notebook dropdown
11 years ago
Min RK
d312486840
Add kernel-select dropdown to new notebook button
...
most recent choice is remembered in localStorage
11 years ago
Min RK
f94e482478
handle undefined settings in promising_ajax
11 years ago
Min RK
4fc163812a
change kernel spec placeholder name to 'Kernel'
11 years ago
Min RK
696394e27d
allow kernel_name to be specified in url parameter
11 years ago
Min RK
9e809126e4
add utils.get_url_param
...
I really cannot believe that we need to write this ourselves
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
Matthias Bussonnier
b12ac2cb15
Merge pull request #7011 from jdfreder/killthelayout
...
Kill the layout manager
11 years ago
Jonathan Frederic
e519371402
Merge pull request #7093 from jasongrout/model-views
...
Make the model.views dict a dict of promises for views
11 years ago
Kyle Kelley
dbf11e02fd
Merge pull request #7107 from jdfreder/import_warning
...
Add warning to widget namespace import.
11 years ago
Jonathan Frederic
5e7d1cfa9f
Add dark lower border to pager handle
11 years ago
Nicholas Bollweg (Nick)
83757b6a0e
moving typeset to utils, usage in cell and outputarea
11 years ago
Jonathan Frederic
e7330f5e22
Address @carreau 's review comments
11 years ago
Jonathan Frederic
80bfe779f5
Add warning to widget namespace import.
11 years ago
Jason Grout
9ca509d915
Merge remote-tracking branch 'public-upstream/master' into links-rebase
...
Conflicts:
examples/Interactive Widgets/Widget Events.ipynb
11 years ago
Nicholas Bollweg (Nick)
c95a9aaf80
accept node or selection
11 years ago
Nicholas Bollweg (Nick)
b17a40d950
moving typeset to DOMWidgetView
11 years ago
Nicholas Bollweg (Nick)
57f05c4a2b
reversing order of arguments, as text may already exist
11 years ago
Nicholas Bollweg (Nick)
00fc31b0a8
also setting text in widget.typset
11 years ago
Nicholas Bollweg (Nick)
9cd878cf0f
moving, checking MathJax typesetting to WidgetView
...
widget rendering should not fail hard if MathJax is not available
11 years ago
Matthias Bussonnier
de52775797
Merge pull request #7078 from takluyver/kernelpath
...
Rework get_kernel_path logic
11 years ago
Jason Grout
155381072c
Make the favicon a template block
11 years ago
Jason Grout
26bec1ad36
Add None as a widget visible value to allow for visiblity: hidden
...
Now, visible can have three values:
* True - show the widget
* False - hide the widget and collapse the empty space
* None - hide the widget and show the empty space
11 years ago
Nathan Heijermans
441d2a2ab0
Merge remote-tracking branch 'upstream/master'
11 years ago
Jonathan Frederic
c0f01d65e8
Increase pager handle size.
11 years ago
Jonathan Frederic
ebb6e818a7
Fix, prevent notebook from having its height set on pager display
11 years ago
Jonathan Frederic
e79a43e867
Fix scroll/resize handle missing behavior.
11 years ago
Jonathan Frederic
a7d54cd512
Fix scrolling for large outputs
11 years ago
Jonathan Frederic
353a9afd34
Kill the layout manager
11 years ago
Jonathan Frederic
5a9e4d7986
Manual fixes
11 years ago