Mathieu
cbd7f1fc98
don't stop propagation in dashboard
...
Stopping click propagation should be avoided when used as a hack
for something else, as it interacts poorly with the open/close
mechanics of Bootstrap menus (amongst others).
(more [here](http://css-tricks.com/dangers-stopping-event-propagation/ )
This code preserves the intended behaviour (toggling the checkbox when
clicking on the row, except for the link) without resorting to
`stopPropagation()`
11 years ago
Min RK
809e79b6e4
bump pyzmq version dependency to 13
...
pyzmq < 13 doesn't work with tornado >= 3, which we also require.
This results in clearer error messages when pyzmq is too old.
11 years ago
Matthias Bussonnier
626d93128a
Merge pull request #7660 from minrk/overlayHackHack
...
Reverse hscrollbar min-height hack on OS X
11 years ago
Matthias Bussonnier
e154634ebf
Merge pull request #7686 from juhasch/shift-tab
...
Make shift-tab work as "indent-less" operation, too
11 years ago
Mathieu
2144e843fe
fix badge display on firefox
...
apparently, the use of `pull-right` requires the badges
to appear before the checkbox in order to display
correctly on firefox.
11 years ago
Mathieu
f012d1553c
invoke css
11 years ago
Mathieu
36a59bf8dc
add disabling, align badges and improve look
...
- Disable checkboxes when there is nothing to select
- right-alignment of badges in the menu
- HTML and CSS improvements for better look (not final)
Internal changes:
- Avoid use of `stopPropagation()`!
Instead, replace bootstap's dropdown hide/show logic
with suitable sticky-dropdown behaviour.
- Avoid selecting the `..` parent folder
11 years ago
Mathieu
2d91e6e1f6
add badge to each menu item
...
this is a possible way to address #7628
11 years ago
Mathieu
3578e8f1e5
streamline tree-selector menu using checkboxes
...
streamlines the menu from #7667 with
- Shorter text, with icons.
- Main checkbox no longer opens the dropdown.
Instead it just selects all/none.
- Fewer menu items but more actions possible by adding checkboxes
in the menu
- Menu stays open until clicking outside.
This obviously needs CSS tweaking
11 years ago
Jonathan Frederic
2aac3e913a
Merge pull request #7683 from minrk/fill-height
...
fill #site height with notebook containers
11 years ago
Min RK
b68cf735d7
Merge pull request #7687 from jdfreder/defineselected
...
Defined selected in notebooklist constructor
11 years ago
Min RK
c6bc3cc407
Merge pull request #7680 from jdfreder/persistfix
...
Fix widget view persistence.
11 years ago
Jonathan Frederic
46d1a64412
Defined selected in notebooklist constructor
11 years ago
Juergen Hasch
b3bf9dc318
Make shift-tab work as "indent-less" operation, too
11 years ago
Min RK
a1abe28c2c
fill #site height with notebook containers
...
avoids cutoff of overlay elements
11 years ago
Jonathan Frederic
a1f75abe32
Test for persistence.
11 years ago
Brian E. Granger
7a2e994a7e
Merge pull request #7667 from jdfreder/treeselector
...
Dashboard selector dropdown.
11 years ago
Jonathan Frederic
d78915af13
Fix variable scope.
11 years ago
Jonathan Frederic
6019c62f7f
Attempt to fix alignment problems
11 years ago
Thomas Kluyver
27334d29f5
Merge pull request #7666 from minrk/edit-download
...
add download link to editor
11 years ago
Thomas Kluyver
ea1892d597
Merge pull request #7668 from minrk/kernelspec-whitelist
...
Add KernelSpecManager.whitelist
11 years ago
Min RK
0378ace195
ensure IPython._target is defined
11 years ago
Min RK
cdb5deef9a
use IPython._target in window.open
11 years ago
Sylvain Corlay
f1cc2d1cc6
Allow a comparison operator 'equals' to be set for reverse lookup
11 years ago
Jonathan Frederic
fb88ecd55d
Address comments,
...
Remove inverse,
Deselect instead of unselect,
Add separator.
11 years ago
Jonathan Frederic
4f3d5eb912
tristate
11 years ago
Min RK
c9f60e6354
Merge pull request #7664 from minrk/start-busy
...
don't trigger kernel_starting after kernel_connected
11 years ago
Min RK
2b44652957
Add KernelSpecManager.whitelist
...
set of allowed kernels by name
Mainly useful for excluding the 'native' python2/3 kernel,
but it's generic.
11 years ago
Min RK
5298f5342a
Merge pull request #7626 from Carreau/refresh-rate
...
Make time to refresh "configurable", and limit refresh on focus
11 years ago
Jonathan Frederic
2167ec43fa
invoke css
11 years ago
Jonathan Frederic
30a23d4456
Add selector button to dashboard
11 years ago
Min RK
23fad40f6d
add download link to editor
11 years ago
Jonathan Frederic
95ac0675c9
Merge pull request #7665 from jdfreder/fixedmodeindi2
...
Fix the mode indicator width.
11 years ago
Jonathan Frederic
697fcf3dcd
Remove accident
11 years ago
Jonathan Frederic
fae9040524
invoek css
11 years ago
Jonathan Frederic
5f72e00dd7
Used fa-fw to force mode indicator as fixed width.
11 years ago
Min RK
ded9e7b6ad
don't trigger kernel_starting after kernel_connected
...
trigger instead at the beginning of Kernel.start
if a websocket is fully connected, the kernel has finished starting
11 years ago
Jonathan Frederic
69b07bf0a8
Prevent list items from being deselected on redraw.
11 years ago
Jonathan Frederic
6d248f258a
Merge pull request #6890 from bollwyvl/widget-select-multiple
...
SelectMultiple widget
11 years ago
Min RK
f1828497e5
only show prompt overlay if there's a prompt
...
on which to overlay
11 years ago
Min RK
6f354fea42
Reverse hscrollbar min-height hack on OS X
...
OS X has optional behavior to only draw scrollbars during scroll,
which causes problems for CodeMirror's scrollbars.
CodeMirror's solution is to set a minimum size for their
scrollbars, which is always present.
The trade is that the container overlays most of the last line,
swallowing click events when there is scrolling to do,
even when no scrollbar is visible.
This reverses the trade, recovering the click events at the expense of
never showing the horizontal scrollbar on OS X when this option is enabled.
11 years ago
Min RK
c0b5621732
Merge pull request #7655 from Carreau/position-tooltip
...
position tooltip in #site
11 years ago
Matthias Bussonnier
ea8fbb930f
position tooltip in #site
...
Fixes #7654 . As the position may be calculated for some browser
differently because of the translate-Z hack.
11 years ago
Matthias Bussonnier
7cbc54b9c3
fix sticky warning.
...
Widget.warning('text....') was infinitely sticky in some cases
like content manager raising 'not implemented' on copy.
The make default click_callback to dismiss notification,
and fix the logic to not unbind the click handler if it requests
the notification not to be dismissed.
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
Nicholas Bollweg
39e7836ddc
firing select.change on option.click
11 years ago
Nicholas Bollweg
7643b3ccf0
listening for change on SelectView and SelectMultipleView
11 years ago
Nicholas Bollweg
6a372a4c66
squashing the whitespace changes
11 years ago
Min RK
e48d772063
back to dev
11 years ago
Min RK
4ac3b6b6a6
prerelease 3.0.0b1
11 years ago
Min RK
1a4aac0de0
Merge pull request #7554 from jdfreder/interact-fix
...
Use Output widget with Interact
11 years ago
Min RK
526ae4ff16
Merge pull request #7630 from minrk/untranslateZ
...
remove translateZ hack
11 years ago
Thomas Kluyver
180842480d
Merge PR #7616 at f6260bd: notebook running indicator in dashboard
...
Closes gh-7616
11 years ago
Mathieu
5de2bdfbbb
invoke css
11 years ago
Mathieu
0f78612964
replace stripes with hover highlight
11 years ago
Min RK
a5218e0cae
fix initial collapsed state on load
...
OutputArea.collapsed should only be assigned inside expand/collapse methods
setting `collapsed = false` when it actually is collapsed prevents expand from having any effect,
resulting in apparently invisible output.
11 years ago
Min RK
7ce360aa6b
Merge pull request #7580 from Carreau/dirty-indicator
...
indicate unsaved changes in text editor
11 years ago
Min RK
fd8db4f282
remove translateZ hack
...
while it does improve repaint performance on *some* setups (OS X+Chrome+Low-DPI),
it seems to have no effect on most (OS X+FF, OS X+Chrome+High-DPI, Linux+Chrome),
and the opposite effect on others (Linux+FF).
11 years ago
Thomas Kluyver
d3c9ea2c7f
Merge pull request #7468 from minrk/jslink
...
document and validate link, dlink
11 years ago
Matthias Bussonnier
cccbf02be5
Make time to refresh "configurable", and limit refresh on focus
...
Closes #7611 and jupyter/jupyter-drive#61
11 years ago
Mathieu
eca11122f9
invoke css
11 years ago
Mathieu
8bf4dbb488
add zebra striping to the dashboard
11 years ago
Jason Grout
d3bd5ac96a
Fix error when overwriting a bad symbolic link installing an nbextension
...
The unit test fails before this fix and works after this fix.
Basically, if the already-installed symlink is a bad link, .exists()
returns False (so the existing link is not removed), while .lexists()
will return True (so the existing link is removed).
11 years ago
Thomas Kluyver
c571fa545d
Merge pull request #7609 from jasongrout/install-single-nbextension
...
Change install_nbextension to take install only a single nbextension, with an optional destination
11 years ago
Thomas Kluyver
e7b54cb7e0
Merge pull request #7622 from jdfreder/uploadfix
...
Fix upload feature for new dashboard UI
11 years ago
Jonathan Frederic
bd30228c27
Add some more comments...
11 years ago
Jonathan Frederic
efaffe1c02
invoke css
11 years ago
Jonathan Frederic
87186354d3
Make upload work with new UI
11 years ago
Min RK
358099a6d6
add missing error dialogs to tree actions
...
- new file/folder, copy were not catching errors
- made error messages more consistent
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
Mathieu
a9201807a9
add running indication for notebook icon in dashboard
11 years ago
Jonathan Frederic
7b8b8b7a1e
Fix interact test
11 years ago
Jonathan Frederic
03ffca6d88
Merge pull request #7602 from SylvainCorlay/fix_slider
...
Validation on the python side
11 years ago
Thomas Kluyver
b0e4ef6b5c
Merge pull request #7505 from jdfreder/actions
...
Dashboard checkbox style interface
11 years ago
Min RK
2ad741a673
remove Link, DirectionalLink from widgets.__init__
...
only functions are part of the public API
11 years ago
Min RK
0071563176
use jslink, jsdlink for frontend link functions
11 years ago
Thomas Kluyver
9790e43997
Merge pull request #7605 from minrk/f-the-pager
...
fix the pager and tooltip locations
11 years ago
Jason Grout
4a9e371243
Cast the destination url to unicode in python2
...
Thanks to @takluyver for this review comment.
11 years ago
Sylvain Corlay
64788624f5
Not using _**_changed handles anymore
11 years ago
Min RK
c77e94a8e6
more fixes for locating tooltip
...
use local measurements instead of page-global locations,
which are wrong now that different elements are scrolled.
11 years ago
Jonathan Frederic
470491432a
files/folders
11 years ago
Jonathan Frederic
11b0dbfd25
Validation on the python side
11 years ago
Matthias Bussonnier
3cb0732dbf
make some target _blank configurable
...
there seem to be "only" 2 places where this make sens, the other
being href in mdcell, detach pager, help link in new windows.
set IPython._target = '_self' for try.jupyter.org shoudl work in
custom.js
11 years ago
Thomas Kluyver
6192c520b5
Merge pull request #7608 from minrk/default-location
...
use default_url for logo link
11 years ago
Jason Grout
43275963cf
Delete unnecessary if branch
...
Thanks to @takluyver for the review comment.
11 years ago
Jason Grout
354861cffd
Fix wording of install-nbextension command help
...
Thanks to @takluyver for the review comment.
11 years ago
Jason Grout
b27739ec65
Give sensible error message if using the install-nbextension command to try to install multiple extensions.
11 years ago
Jason Grout
0ee28ed816
Fix variable name typo
11 years ago
Jason Grout
c93a31ce70
Change install_nbextension to take install only a single nbextension (file, folder, archive, url), with an optional destination argument
11 years ago
Thomas Kluyver
d7f1166005
Merge pull request #7454 from minrk/project_name
...
add language name to kernelspec
11 years ago
Min RK
c62298f40b
empty default_url when outside IPython
11 years ago
Min RK
e1c8de79dd
Merge pull request #7606 from Carreau/date-now
...
Date now
11 years ago
Min RK
2d0b8b1d6a
use default_url for logo link
11 years ago
Min RK
cc84f1d783
ensure default_url includes base_url
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
Matthias Bussonnier
a6eefd8952
Merge pull request #7576 from minrk/warn-overwrite
...
Confirm save if notebook changed
11 years ago
Bussonnier Matthias
4513aae2b9
[editor] mark unsaved changes
...
Put indicator before time, change title.
And cleanup implementation.
11 years ago
Min RK
a1e4775487
fix tooltip location
...
put it inside `#site`, so it scrolls with the notebook
11 years ago
Min RK
e18a502484
"fix" the pager
...
- pull the pager element out of `#site`
- fix top to `auto` instead of `inherit`
11 years ago
Jonathan Frederic
22f8c7929d
Merge pull request #7604 from minrk/print-smh
...
set height: auto on #site for print
11 years ago
Thomas Kluyver
2b7b0dbfc2
Merge pull request #7600 from minrk/check-streams
...
protect websocket against errant messages
11 years ago
Jonathan Frederic
7a2439d1a0
Import `get_ipython` function
11 years ago
Min RK
87758e0c77
set height: auto on #site for print
...
avoids truncating printed output
11 years ago
Min RK
395ad097a9
add some horizontal margin on select dropdown
...
to avoid overlapping adjacent text when active
11 years ago
Min RK
089973920b
use one-off notification widget for match notification
...
when no exact match, and only one kernel matches language
11 years ago
Min RK
abf27c1ddf
"Continue without kernel" button
11 years ago
Min RK
e67df0526a
use Array.map
11 years ago
Min RK
89bb88bf6e
s/language_name/language/
11 years ago
Min RK
3a20b9928b
add "No appropriate kernel" button to kernel-selection prompt
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
Min RK
1eddad8a63
Merge pull request #7578 from Carreau/moreerrors
...
Catch and/or log a bit more errors.
11 years ago
Min RK
72630e7672
test widget link argument validation
11 years ago
Min RK
f11fbe8844
add missing `that = this`
11 years ago
Min RK
121d495424
protect websocket against errant messages
...
- message handler being triggered after stream is closed (no channels)
- messages sent to invalid channels
11 years ago
Thomas Kluyver
a788c02ea3
Merge pull request #7599 from minrk/modal-double-border
...
remove duplicated border in indicator area
11 years ago
Matthias Bussonnier
b0cb79d4e7
Merge pull request #7598 from minrk/ignore-empty-cell
...
don't execute empty cells
11 years ago
Min RK
54bce1c423
remove duplicated border in indicator area
11 years ago
Thomas Kluyver
c00eb5973f
Merge pull request #7537 from jasongrout/nbextension-custom-dest
...
Configurable destinations for nbextensions.
11 years ago
Min RK
a7e72f8b80
don't execute empty cells
...
reorder execute a little, so that clearing old state all happens before setting new state
11 years ago
Min RK
7f3f3d4316
apply `position: relative` to header
...
otherwise, z-index has no effect,
causing header shadow to fall behind content.
11 years ago
Thomas Kluyver
708088d74a
Merge pull request #7586 from Carreau/notif-editor
...
re-hook notification area for editor.
11 years ago
Jason Grout
3f3012a4d4
Don't trap any copying errors - allow them to bubble up.
11 years ago
Peter Parente
91740ace4a
Fix initial scroll overflow with padding (from @joelkim)
11 years ago
Min RK
b5ba6caf72
fix CodeMirror div measurement on edit page
...
was measuring the wrong elements,
causing the CM div to not fit on the page,
resulting in multiple scrollbars.
11 years ago
Min RK
339238587f
rebuild css with font-awesome-4.3
11 years ago
Jonathan Frederic
2501206692
Only show shutdown when notebooks are the only thing selected.
11 years ago
Jonathan Frederic
0779c37871
Re-add shutdown button to running tab
11 years ago
Jonathan Frederic
9923737e74
Use trash bin icon,
...
and add tooltip to checkbox
11 years ago
Jonathan Frederic
c3838cf2c9
That this typo
11 years ago
Jonathan Frederic
0ca3ce1236
Use running text instead of icon.
11 years ago
Jonathan Frederic
bd52c3bc3a
Change shutdown button display behavior,
...
now display when atleast one RUNNING notebook is selected.
11 years ago
Jonathan Frederic
e586a364cd
Shutdown the selected notebooks before deleting them
11 years ago
Jonathan Frederic
ffac8cc1bb
invoke css
11 years ago
Jonathan Frederic
8701ac2db5
Use checkbox layout instead of actions dropdown
11 years ago
Jonathan Frederic
d07b05c8c4
Add actions dropdown to tree view
11 years ago
Min RK
3b1ac5c58f
Merge pull request #7579 from Carreau/ntf
...
rename "new-file" to "new > text file"
11 years ago
Bussonnier Matthias
8bc4bbab68
remove "Saving..." notification
11 years ago
Matthias Bussonnier
1ce46a8723
Merge pull request #7481 from minrk/toggle-buttons-indicate
...
don't set bootstrap toggle on ToggleButtonsWidget
11 years ago
Bussonnier Matthias
0118cfbd48
re-hook notification area for editor.
...
- re-order element to be the same as in notebook,
- rename events correctly.
- Add event on savign to show that save is in progress, that get
dismissed on file save
Closes #7569
11 years ago
damianavila
1b520328d6
Fix the hidden x scrolling.
11 years ago
Bussonnier Matthias
caa5d499e9
rename "new-file" to "new > text file"
...
Because it is not obvious to everyone...
Closes #7571
11 years ago
Bussonnier Matthias
ab8290ae95
Catch and/or log a bit more errors.
11 years ago
Matthias Bussonnier
730c0b8822
Merge pull request #7522 from minrk/store-scroll
...
remember and persist manual scroll state.
11 years ago
Matthias Bussonnier
f5cbbd591f
Merge pull request #7565 from minrk/missing-focusout
...
enable keyboard manager when codemirror is focused
11 years ago
Min RK
ad83e79ea5
allow requesting contents without body
...
adds `?content=0` to only fetch the metadata in the model.
The REST API now exposes all arguments to ContentsManager.get.
11 years ago
Min RK
83ce71aa53
Merge pull request #7551 from Carreau/xxs
...
fix left-margin on xxs screen
11 years ago
Min RK
d4eb36ea02
Merge pull request #7557 from minrk/different-resize
...
don't use flexbox to size `#site`
11 years ago
Min RK
d8ccd5e39b
Merge pull request #7473 from Carreau/no-pager-jump
...
Smooth notebook scrolling on pager closing.
11 years ago
Min RK
525c16d721
hook up ScrollManager to #site
11 years ago
Bussonnier Matthias
c81ae8762e
fix left-margin on xxs screen
11 years ago
Min RK
11a9feb25f
enable keyboard manager when codemirror is focused
...
This should always be true, and mitigate focus-related keyboard bugs, such as #7555 .
11 years ago
Thomas Kluyver
a2a407a271
Merge pull request #7563 from minrk/kernel-msg-docs
...
document restarting, dead kernel status messages
11 years ago
Thomas Kluyver
684cb28c33
Merge pull request #7559 from minrk/wait-for-kernel-selector
...
wait for new-notebook button to arrive
11 years ago
Min RK
67e5303614
Merge pull request #7521 from amcdawes/i7322
...
change keyboard help to use `esc` and adds key symbol table
closes #7322
11 years ago
Min RK
fabc9ab119
Merge pull request #7552 from minrk/terminal-unavailable
...
Indicate that terminals are unavailable
11 years ago
Min RK
315fb1528e
remove inappropriate negative margin on menubar
...
caused 1px mismatch between header background and menubar
when toolbar is hidden.
11 years ago
Min RK
f971cad223
use translateZ(0) to avoid repaints of `#site` on scroll.
11 years ago
Min RK
f499104d75
don't use flexbox to size `#site`
...
The approach in #7517 didn't work on Safari
(as in the entire page was invisible).
This is the same mechanism used to size the CodeMirror div on the edit page, and should work more reliably.
11 years ago
Min RK
99faeddf36
wait for new-notebook button to arrive
...
before clicking it.
Race condition was causing intermittent test failures.
11 years ago
Jonathan Frederic
567183b154
Use output widget with interact
11 years ago
Jonathan Frederic
e4b6ef57ec
Move get_ipython call into output widget constructor
11 years ago
Min RK
5dfece0a2a
Merge pull request #7514 from minrk/border-markdown
...
add border to rendered markdown with cell toolbar
11 years ago
Min RK
57d5f7a4e0
Indicate that terminals are unavailable
...
rather than hiding any evidence of their existence
11 years ago
Min RK
3d96dfc6fb
Merge pull request #7523 from jdfreder/outputwidgetfix
...
Fix the output widget
11 years ago
Andrew Dawes
98e77906e4
removed tab backward
11 years ago
Jason Grout
009dcf43cf
change filename to unicode string
11 years ago
Thomas Kluyver
306ced6ac7
Merge pull request #7541 from minrk/no-no-default
...
remove preventDefault on menubar
11 years ago
Jonathan Frederic
374be802c0
Merge pull request #7517 from minrk/scroll-offset
...
don't use fixed header
11 years ago
Jason Grout
ad35813576
Make nbextension test a little clearer about the intent.
11 years ago
Min RK
e2c48d6df7
Merge pull request #7526 from jdfreder/editscroll
...
Explicitly size codemirror editor in Edit app
11 years ago
Jason Grout
9701ce1752
Add some unit tests for the new dictionary syntax for installing nbextensions
11 years ago
Jonathan Frederic
efe654e59d
Use longer version of document.ready
11 years ago
Jason Grout
996d77cc89
Add documentation to check_nbextension, and switch order of parameters to be consistent with install_nbextension.
11 years ago
Jason Grout
25b475bc0a
Refactor the logic to get the nbextension directory
...
We do this so that check_nbextension corresponds to install_nbextension.
11 years ago
Min RK
76624b9a93
remove preventDefault on menubar
...
no longer needed after removing fixed header
11 years ago
Jason Grout
6b4c986407
Work around a bug in setting and getting the mtime in python 2
...
See http://bugs.python.org/issue12904 . Basically, we can get the mtime in
nanosecond precision, but only set it in microsecond precision. This means
that the shutil.copy2 will not set the destination's mtime to exactly the same
mtime as our source. The end result is that we can *always* end up copying
the extension because the source always appears newer. We add a microsecond of fudge time when checking to see
if the source is newer than the destination to get around this.
This bug is fixed in Python 3.3+, I believe.
11 years ago
Jason Grout
3beb707717
Copy as much of the nbextension as we can, even if there are errors for some of the files.
11 years ago
Jason Grout
a3d0a1764b
Fix the path we use when walking to include the path separator
...
This is so that parent[len(path):] isn't an absolute path, so the pjoin doesn't throw dest away.
11 years ago
Jason Grout
fc5a3bb304
Don't overwrite the dest variable
11 years ago
Min RK
ecb6dce489
add docstrings, validation to widget links
11 years ago
Jonathan Frederic
c248211ed6
Don't build message twice.
11 years ago
Jonathan Frederic
6eda2d80f9
Add support for Message class.
11 years ago
Jonathan Frederic
273a8030d9
Hook the output the right way.
11 years ago
Jason Grout
bf4a20f382
Initial take on implementing configurable destinations for nbextensions.
...
This allows for a directory in a package to be called 'nbextensions', but be installed to an nbextension named after the package, for example.
11 years ago
Jonathan Frederic
6b9558c613
Be a little more clear about sizing logic.
11 years ago
Andrew Dawes
8ed28bf57d
cleaned up new function and removed comments
11 years ago
Andrew Dawes
09818e6b02
working function to build modifier key list
11 years ago
Min RK
cf25b8a93c
fix printing
11 years ago
Thomas Kluyver
3c8ca375f3
Merge pull request #7525 from tbittner/document-interact-5637
...
Document interact 5637
11 years ago
Jonathan Frederic
bdd40e2734
Explicitly size codemirror editor in Edit app
11 years ago
Jonathan Frederic
526071cadb
Remove superfluous return
11 years ago
Torsten Bittner
d5a7879a26
Add documentation for interactive function.
11 years ago
Jonathan Frederic
39b99340ed
Finished changing output widget logic.
11 years ago
Min RK
ab221f09f9
toggle scroll from auto based on current scroll
...
rather than always `false`
11 years ago
Min RK
66450cf2b3
allow users to set scroll state
...
and persist that state in metadata.
When user toggles the scroll state,
the choice is remembered and persisted.
There are three states:
- 'auto' (default, only state in master)
- true (always scroll if above minimum_scroll_threshold)
- false (never scroll)
true or false is persisted in cell.metadata.scrolled.
"auto" may be persisted, but isn't currently because it's the default state.
11 years ago
Andrew Dawes
1a10511143
new function build_key_names to automate
11 years ago
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