Commit Graph

5967 Commits

Author SHA1 Message Date
Matthias Bussonnier
8567deaa6f Pass common_config to content manager. 2015-02-12 16:11:13 -08:00
Thomas Kluyver
c5bed40d72 Merge pull request #7766 from minrk/select-pad
adjust appearance of cell toolbar select
2015-02-12 14:41:04 -08:00
Min RK
0ea61c7500 Merge pull request #7747 from Carreau/fix-lang
Select language based on old notebook meta.lang.
2015-02-12 13:43:38 -08:00
Matthias Bussonnier
1ea96d24c4 typo "Should" 2015-02-12 12:12:51 -08:00
Matthias Bussonnier
7a9797f6f6 Typo "settings" 2015-02-12 12:12:21 -08:00
Min RK
600a61b993 Merge pull request #7763 from ctaf42/cg/utils/get_body_data
get_body_data: fix for undefined
2015-02-12 12:00:48 -08:00
Min RK
124874f115 Merge pull request #7610 from Carreau/_blank
make some target _blank configurable
2015-02-12 11:59:34 -08:00
Min RK
f4513bc7ce adjust appearance of cell toolbar select
undo some of the bootstrap mixin sizing,
which should help the appearance on Firefox on Linux.
2015-02-12 11:53:14 -08:00
Matthias Bussonnier
4bca402eae Merge pull request #7748 from minrk/poll-windows
add no-op every 5s on Windows
2015-02-12 11:17:29 -08:00
Matthias Bussonnier
9cc7c2bf02 Merge pull request #7730 from minrk/complete-v4-empty
handle zero-length match in v4 completions
2015-02-12 11:14:33 -08:00
Jonathan Frederic
412ac27120 Merge pull request #7721 from jdfreder/widecontents2
Prevent image outputs from being wider than their container.
2015-02-12 09:42:40 -08:00
Cedric GESTES
49845b92af get_body_data: fix for undefined
return undefined instead of "undefined"
2015-02-12 14:26:49 +01:00
Min RK
8b93d1561e disable screenKeys in term.js
these capture ctrl-a and other keyboard shortcuts
2015-02-11 14:10:12 -08:00
Thomas Kluyver
8983606a89 Merge pull request #7752 from Carreau/nbdoc
minor doc improvement on nbextension
2015-02-11 12:57:08 -08:00
Matthias Bussonnier
cfa2d26f71 minor doc improvement on nbextension 2015-02-11 12:52:42 -08:00
Matthias Bussonnier
2394be85c2 explicitely pass language for old notebook 2015-02-11 12:07:46 -08:00
Min RK
64b4d90eeb add no-op every 5s on Windows
signals don't interrupt the inner loop on Windows,
so pump the eventloop every 5s
2015-02-11 10:45:26 -08:00
Jonathan Frederic
65540779ee Merge pull request #7733 from minrk/esc-tooltip
prevent esc from bubbling up when dismissing tooltip
2015-02-11 10:20:00 -08:00
Matthias Bussonnier
62bfd92374 Select language based on old notebook meta.lang.
Also fix UI when selecting kernels by string.

Fix #7744 and #7742
2015-02-11 10:15:07 -08:00
Mathieu
95f0f520c7 add tooltips 2015-02-11 11:36:59 +01:00
Sylvain Corlay
da96d28620 font awesome icon 2015-02-10 21:36:50 -05:00
Mathieu
4ffe57f48a keep only basic changes
Kept changes:
- fewer, shorter menu items (too cryptic?), with icons.
- main checkbox does not open menu, but selects all/none.
- total selection count next to main checkbox (unsure if this is to be
kept. It does address #7628).

Removed changes:
- sticky menu.
- checkboxes and counters in menu.
2015-02-11 03:09:19 +01:00
Min RK
7bbdabdfd5 scrolling workaround for Firefox
setting overflow-x: hidden on Firefox prevents
long input from growing the cell ever wider on Firefox.

CSS is only applied on Firefox
2015-02-10 17:32:47 -08:00
Min RK
4ec038db1b Merge pull request #7720 from jdfreder/readonlyui
Readonly indicator.
2015-02-10 17:15:06 -08:00
Min RK
8e20f8d848 prevent esc from bubbling up when dismissing tooltip
prevents esc from entering command mode when it's
meant to dismiss the tooltip.

The logic for the event was already there,
it just lacked the `ipkmIgnore` bit.
2015-02-10 17:09:40 -08:00
Thomas Kluyver
73727ed5ae Remove Ctrl-J & Ctrl-K shortcuts
Closes gh-7716
2015-02-10 13:36:20 -08:00
Min RK
a9896e7404 handle zero-length match in v4 completions
use start=None instead of `-0` to indicate start == end
(which is already None indicating the same value).
2015-02-10 12:35:14 -08:00
Jonathan Frederic
28f54afd57 invoke css 2015-02-09 14:21:02 -08:00
Jonathan Frederic
67f000c721 Start read-only indicator as hidden. 2015-02-09 14:20:46 -08:00
Jonathan Frederic
2345e0fb5c Add title to read-only indicator. 2015-02-09 11:32:58 -08:00
Jonathan Frederic
c639380a1f invoke css 2015-02-09 11:24:52 -08:00
Jonathan Frederic
193986748c Prevent output images from being larger than their container. 2015-02-09 11:24:52 -08:00
Jonathan Frederic
dcaa52daee invoke css 2015-02-09 11:11:04 -08:00
Jonathan Frederic
231c30a550 Add readonly indicator to notification area. 2015-02-09 11:10:51 -08:00
Jonathan Frederic
7ae5f5c13b invoke css 2015-02-09 10:30:17 -08:00
Jonathan Frederic
c4d017fe84 Don't allow output to overflow page width. 2015-02-09 10:29:50 -08:00
Jonathan Frederic
9ebb06f46a Correct capitalization in menu. 2015-02-09 09:40:15 -08:00
Jonathan Frederic
14980570a7 Merge pull request #7700 from mathieu1/avoid-stopPropagation
Don't stop propagation in dashboard
2015-02-09 09:21:22 -08:00
Thomas Kluyver
f7f802bb33 Merge pull request #7709 from SylvainCorlay/iptest
JSController cleanup: support case where no server is started
2015-02-08 11:52:27 -08:00
Sylvain Corlay
1a85d7d24d support case where no server is started 2015-02-07 18:58:39 -05:00
Jonathan Frederic
b906cf0a8f Revert "Use Output widget with Interact" 2015-02-06 09:02:03 -08:00
Mathieu
d6583c8097 invoke css 2015-02-06 16:28:18 +01:00
Mathieu
9fe1f43089 clean up CSS and firefox clicks
- `#button-select-all` toggles the all/none checkbox
  and the all/none checkbox now works on firefox
- static appearance of the `#button-select-all` button
  (even on counter change, up to two digits)
- clean up `tree.less`
2015-02-06 16:24:58 +01:00
Mathieu
0e9f13807e add select-all badge 2015-02-06 01:27:43 +01:00
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()`
2015-02-06 00:39:09 +01:00
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.
2015-02-05 14:16:48 -08:00
Matthias Bussonnier
626d93128a Merge pull request #7660 from minrk/overlayHackHack
Reverse hscrollbar min-height hack on OS X
2015-02-05 12:02:44 -08:00
Matthias Bussonnier
e154634ebf Merge pull request #7686 from juhasch/shift-tab
Make shift-tab work as "indent-less" operation, too
2015-02-05 11:53:07 -08:00
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.
2015-02-05 20:36:19 +01:00
Mathieu
f012d1553c invoke css 2015-02-05 14:22:30 +01:00
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
2015-02-05 14:22:30 +01:00
Mathieu
2d91e6e1f6 add badge to each menu item
this is a possible way to address #7628
2015-02-05 14:22:29 +01:00
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
2015-02-05 14:22:29 +01:00
Jonathan Frederic
2aac3e913a Merge pull request #7683 from minrk/fill-height
fill #site height with notebook containers
2015-02-04 15:03:25 -08:00
Min RK
b68cf735d7 Merge pull request #7687 from jdfreder/defineselected
Defined selected in notebooklist constructor
2015-02-04 13:51:18 -08:00
Min RK
c6bc3cc407 Merge pull request #7680 from jdfreder/persistfix
Fix widget view persistence.
2015-02-04 13:51:08 -08:00
Jonathan Frederic
46d1a64412 Defined selected in notebooklist constructor 2015-02-04 12:13:08 -08:00
Juergen Hasch
b3bf9dc318 Make shift-tab work as "indent-less" operation, too 2015-02-04 20:56:37 +01:00
Min RK
a1abe28c2c fill #site height with notebook containers
avoids cutoff of overlay elements
2015-02-04 10:33:36 -08:00
Jonathan Frederic
a1f75abe32 Test for persistence. 2015-02-04 09:54:15 -08:00
Brian E. Granger
7a2e994a7e Merge pull request #7667 from jdfreder/treeselector
Dashboard selector dropdown.
2015-02-03 17:07:53 -08:00
Jonathan Frederic
d78915af13 Fix variable scope. 2015-02-03 16:34:12 -08:00
Jonathan Frederic
6019c62f7f Attempt to fix alignment problems 2015-02-03 16:13:09 -08:00
Thomas Kluyver
27334d29f5 Merge pull request #7666 from minrk/edit-download
add download link to editor
2015-02-03 14:33:20 -08:00
Thomas Kluyver
ea1892d597 Merge pull request #7668 from minrk/kernelspec-whitelist
Add KernelSpecManager.whitelist
2015-02-03 14:27:02 -08:00
Min RK
0378ace195 ensure IPython._target is defined 2015-02-03 12:41:21 -08:00
Min RK
cdb5deef9a use IPython._target in window.open 2015-02-03 12:39:19 -08:00
Sylvain Corlay
f1cc2d1cc6 Allow a comparison operator 'equals' to be set for reverse lookup 2015-02-03 19:33:03 +00:00
Jonathan Frederic
fb88ecd55d Address comments,
Remove inverse,
Deselect instead of unselect,
Add separator.
2015-02-03 08:21:46 -08:00
Jonathan Frederic
4f3d5eb912 tristate 2015-02-02 23:09:51 -08:00
Min RK
cc64652f56 use \0 instead of 'wake up' to finish output
since we are now seeing the captured output,
we don't need `wake up` at the end of all of our test outputs.
2015-02-02 17:14:24 -08:00
Min RK
c9f60e6354 Merge pull request #7664 from minrk/start-busy
don't trigger kernel_starting after kernel_connected
2015-02-02 17:04:49 -08:00
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.
2015-02-02 17:01:08 -08:00
Min RK
5298f5342a Merge pull request #7626 from Carreau/refresh-rate
Make time to refresh "configurable", and limit refresh on focus
2015-02-02 16:37:33 -08:00
Jonathan Frederic
2167ec43fa invoke css 2015-02-02 16:36:48 -08:00
Jonathan Frederic
30a23d4456 Add selector button to dashboard 2015-02-02 16:36:28 -08:00
Min RK
23fad40f6d add download link to editor 2015-02-02 16:35:24 -08:00
Jonathan Frederic
95ac0675c9 Merge pull request #7665 from jdfreder/fixedmodeindi2
Fix the mode indicator width.
2015-02-02 15:39:43 -08:00
Jonathan Frederic
697fcf3dcd Remove accident 2015-02-02 14:48:27 -08:00
Jonathan Frederic
fae9040524 invoek css 2015-02-02 14:46:11 -08:00
Jonathan Frederic
5f72e00dd7 Used fa-fw to force mode indicator as fixed width. 2015-02-02 14:46:02 -08:00
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
2015-02-02 14:23:00 -08:00
Jonathan Frederic
69b07bf0a8 Prevent list items from being deselected on redraw. 2015-02-02 13:22:24 -08:00
Jonathan Frederic
6d248f258a Merge pull request #6890 from bollwyvl/widget-select-multiple
SelectMultiple widget
2015-02-02 12:51:40 -08:00
Min RK
f1828497e5 only show prompt overlay if there's a prompt
on which to overlay
2015-02-02 11:27:23 -08:00
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.
2015-02-02 10:59:29 -08:00
Min RK
c0b5621732 Merge pull request #7655 from Carreau/position-tooltip
position tooltip in #site
2015-02-01 14:44:41 -08:00
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.
2015-02-01 15:05:58 +01:00
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.
2015-02-01 12:19:38 +01:00
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`.
2015-01-31 14:27:15 -08:00
Nicholas Bollweg
39e7836ddc firing select.change on option.click 2015-01-31 00:02:20 -05:00
Nicholas Bollweg
7643b3ccf0 listening for change on SelectView and SelectMultipleView 2015-01-31 00:02:20 -05:00
Nicholas Bollweg
6a372a4c66 squashing the whitespace changes 2015-01-31 00:02:20 -05:00
Min RK
e48d772063 back to dev 2015-01-30 14:21:34 -08:00
Min RK
4ac3b6b6a6 prerelease 3.0.0b1 2015-01-30 14:20:04 -08:00
Min RK
1a4aac0de0 Merge pull request #7554 from jdfreder/interact-fix
Use Output widget with Interact
2015-01-30 12:03:51 -08:00
Min RK
526ae4ff16 Merge pull request #7630 from minrk/untranslateZ
remove translateZ hack
2015-01-30 10:33:31 -08:00
Thomas Kluyver
180842480d Merge PR #7616 at f6260bd: notebook running indicator in dashboard
Closes gh-7616
2015-01-30 09:36:40 -08:00
Mathieu
5de2bdfbbb invoke css 2015-01-30 00:47:12 +01:00
Mathieu
0f78612964 replace stripes with hover highlight 2015-01-30 00:46:11 +01:00
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.
2015-01-29 15:33:23 -08:00
Min RK
7ce360aa6b Merge pull request #7580 from Carreau/dirty-indicator
indicate unsaved changes in text editor
2015-01-29 11:36:08 -08:00
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).
2015-01-29 11:31:24 -08:00
Thomas Kluyver
d3c9ea2c7f Merge pull request #7468 from minrk/jslink
document and validate link, dlink
2015-01-29 11:30:18 -08:00
Matthias Bussonnier
cccbf02be5 Make time to refresh "configurable", and limit refresh on focus
Closes #7611 and jupyter/jupyter-drive#61
2015-01-29 14:40:49 +01:00
Mathieu
eca11122f9 invoke css 2015-01-29 01:08:05 +01:00
Mathieu
8bf4dbb488 add zebra striping to the dashboard 2015-01-29 01:06:56 +01:00
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).
2015-01-28 23:54:24 +00:00
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
2015-01-28 14:31:33 -08:00
Thomas Kluyver
e7b54cb7e0 Merge pull request #7622 from jdfreder/uploadfix
Fix upload feature for new dashboard UI
2015-01-28 14:30:20 -08:00
Jonathan Frederic
bd30228c27 Add some more comments... 2015-01-28 12:26:13 -08:00
Jonathan Frederic
efaffe1c02 invoke css 2015-01-28 12:19:31 -08:00
Jonathan Frederic
87186354d3 Make upload work with new UI 2015-01-28 12:19:19 -08:00
Min RK
358099a6d6 add missing error dialogs to tree actions
- new file/folder, copy were not catching errors
- made error messages more consistent
2015-01-28 12:01:30 -08:00
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
2015-01-28 09:17:52 -08:00
Mathieu
a9201807a9 add running indication for notebook icon in dashboard 2015-01-28 16:01:09 +01:00
Jonathan Frederic
7b8b8b7a1e Fix interact test 2015-01-27 15:48:34 -08:00
Jonathan Frederic
03ffca6d88 Merge pull request #7602 from SylvainCorlay/fix_slider
Validation on the python side
2015-01-27 14:09:38 -08:00
Thomas Kluyver
b0e4ef6b5c Merge pull request #7505 from jdfreder/actions
Dashboard checkbox style interface
2015-01-27 13:49:51 -08:00
Min RK
2ad741a673 remove Link, DirectionalLink from widgets.__init__
only functions are part of the public API
2015-01-27 13:40:57 -08:00
Min RK
0071563176 use jslink, jsdlink for frontend link functions 2015-01-27 13:39:50 -08:00
Thomas Kluyver
9790e43997 Merge pull request #7605 from minrk/f-the-pager
fix the pager and tooltip locations
2015-01-27 13:24:12 -08:00
Jason Grout
4a9e371243 Cast the destination url to unicode in python2
Thanks to @takluyver for this review comment.
2015-01-27 21:22:41 +00:00
Sylvain Corlay
64788624f5 Not using _**_changed handles anymore 2015-01-27 20:48:47 +00:00
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.
2015-01-27 12:30:46 -08:00
Jonathan Frederic
470491432a files/folders 2015-01-27 12:30:07 -08:00
Jonathan Frederic
11b0dbfd25 Validation on the python side 2015-01-27 20:24:25 +00:00
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
2015-01-27 21:21:44 +01:00
Thomas Kluyver
6192c520b5 Merge pull request #7608 from minrk/default-location
use default_url for logo link
2015-01-27 12:09:36 -08:00
Jason Grout
43275963cf Delete unnecessary if branch
Thanks to @takluyver for the review comment.
2015-01-27 19:55:15 +00:00
Jason Grout
354861cffd Fix wording of install-nbextension command help
Thanks to @takluyver for the review comment.
2015-01-27 19:55:03 +00:00
Jason Grout
b27739ec65 Give sensible error message if using the install-nbextension command to try to install multiple extensions. 2015-01-27 19:52:31 +00:00
Jason Grout
0ee28ed816 Fix variable name typo 2015-01-27 19:52:03 +00:00
Jason Grout
c93a31ce70 Change install_nbextension to take install only a single nbextension (file, folder, archive, url), with an optional destination argument 2015-01-27 19:18:35 +00:00
Thomas Kluyver
d7f1166005 Merge pull request #7454 from minrk/project_name
add language name to kernelspec
2015-01-27 11:11:00 -08:00
Min RK
c62298f40b empty default_url when outside IPython 2015-01-27 10:51:33 -08:00
Min RK
e1c8de79dd Merge pull request #7606 from Carreau/date-now
Date now
2015-01-27 10:44:23 -08:00
Min RK
2d0b8b1d6a use default_url for logo link 2015-01-27 10:39:50 -08:00
Min RK
cc84f1d783 ensure default_url includes base_url 2015-01-27 10:39:33 -08:00
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
2015-01-27 12:18:26 +01:00
Matthias Bussonnier
e558e1aeb8 refactor imports 2015-01-27 12:09:06 +01:00
Matthias Bussonnier
a6eefd8952 Merge pull request #7576 from minrk/warn-overwrite
Confirm save if notebook changed
2015-01-27 11:45:14 +01:00
Bussonnier Matthias
4513aae2b9 [editor] mark unsaved changes
Put indicator before time, change title.

And cleanup implementation.
2015-01-27 11:39:54 +01:00
Min RK
a1e4775487 fix tooltip location
put it inside `#site`, so it scrolls with the notebook
2015-01-26 21:43:31 -08:00
Min RK
e18a502484 "fix" the pager
- pull the pager element out of `#site`
- fix top to `auto` instead of `inherit`
2015-01-26 21:42:22 -08:00
Jonathan Frederic
22f8c7929d Merge pull request #7604 from minrk/print-smh
set height: auto on #site for print
2015-01-26 17:40:03 -08:00
Thomas Kluyver
2b7b0dbfc2 Merge pull request #7600 from minrk/check-streams
protect websocket against errant messages
2015-01-26 17:39:10 -08:00
Jonathan Frederic
7a2439d1a0 Import get_ipython function 2015-01-26 17:33:21 -08:00
Min RK
87758e0c77 set height: auto on #site for print
avoids truncating printed output
2015-01-26 17:23:10 -08:00
Min RK
395ad097a9 add some horizontal margin on select dropdown
to avoid overlapping adjacent text when active
2015-01-26 15:31:04 -08:00
Min RK
089973920b use one-off notification widget for match notification
when no exact match, and only one kernel matches language
2015-01-26 15:31:04 -08:00
Min RK
abf27c1ddf "Continue without kernel" button 2015-01-26 15:31:04 -08:00
Min RK
e67df0526a use Array.map 2015-01-26 15:31:04 -08:00
Min RK
89bb88bf6e s/language_name/language/ 2015-01-26 15:31:03 -08:00
Min RK
3a20b9928b add "No appropriate kernel" button to kernel-selection prompt 2015-01-26 15:31:03 -08:00
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
2015-01-26 15:31:03 -08:00
Min RK
e514d930cf handle missing kernel
- if project_name matches, pick another kernel
- if no match, show dialog with kernel selector
2015-01-26 15:31:03 -08:00
Min RK
6bf7f1ab43 add project_name to kernelspec
this should be the same for compatible kernels ('ipython', 'ijulia', etc.)
2015-01-26 15:31:02 -08:00
Min RK
f52ecf1beb warn on clobber of notebooks
check last_modified before saving. If it's changed, confirm overwrite.
2015-01-26 14:39:04 -08:00
Min RK
1eddad8a63 Merge pull request #7578 from Carreau/moreerrors
Catch and/or log a bit more errors.
2015-01-26 14:26:47 -08:00
Min RK
72630e7672 test widget link argument validation 2015-01-26 11:33:06 -08:00
Min RK
f11fbe8844 add missing that = this 2015-01-26 11:22:22 -08:00
Min RK
121d495424 protect websocket against errant messages
- message handler being triggered after stream is closed (no channels)
- messages sent to invalid channels
2015-01-26 11:11:13 -08:00
Thomas Kluyver
a788c02ea3 Merge pull request #7599 from minrk/modal-double-border
remove duplicated border in indicator area
2015-01-26 11:09:26 -08:00
Matthias Bussonnier
b0cb79d4e7 Merge pull request #7598 from minrk/ignore-empty-cell
don't execute empty cells
2015-01-26 20:06:23 +01:00
Min RK
54bce1c423 remove duplicated border in indicator area 2015-01-26 10:56:09 -08:00
Thomas Kluyver
c00eb5973f Merge pull request #7537 from jasongrout/nbextension-custom-dest
Configurable destinations for nbextensions.
2015-01-26 10:53:27 -08:00
Min RK
a7e72f8b80 don't execute empty cells
reorder execute a little, so that clearing old state all happens before setting new state
2015-01-26 10:25:17 -08:00
Min RK
7f3f3d4316 apply position: relative to header
otherwise, z-index has no effect,
causing header shadow to fall behind content.
2015-01-26 10:12:08 -08:00
Thomas Kluyver
708088d74a Merge pull request #7586 from Carreau/notif-editor
re-hook notification area for editor.
2015-01-26 10:03:29 -08:00
Jason Grout
3f3012a4d4 Don't trap any copying errors - allow them to bubble up. 2015-01-26 14:22:05 +00:00
Peter Parente
91740ace4a Fix initial scroll overflow with padding (from @joelkim) 2015-01-26 09:08:45 -05:00
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.
2015-01-25 22:39:54 -08:00
Min RK
339238587f rebuild css with font-awesome-4.3 2015-01-25 22:38:34 -08:00
Jonathan Frederic
2501206692 Only show shutdown when notebooks are the only thing selected. 2015-01-25 18:15:43 -08:00
Jonathan Frederic
0779c37871 Re-add shutdown button to running tab 2015-01-25 18:08:34 -08:00
Jonathan Frederic
9923737e74 Use trash bin icon,
and add tooltip to checkbox
2015-01-25 18:08:33 -08:00
Jonathan Frederic
c3838cf2c9 That this typo 2015-01-25 18:08:33 -08:00
Jonathan Frederic
0ca3ce1236 Use running text instead of icon. 2015-01-25 18:08:33 -08:00
Jonathan Frederic
bd52c3bc3a Change shutdown button display behavior,
now display when atleast one RUNNING notebook is selected.
2015-01-25 18:08:33 -08:00
Jonathan Frederic
e586a364cd Shutdown the selected notebooks before deleting them 2015-01-25 18:08:33 -08:00
Jonathan Frederic
ffac8cc1bb invoke css 2015-01-25 18:08:33 -08:00
Jonathan Frederic
8701ac2db5 Use checkbox layout instead of actions dropdown 2015-01-25 18:08:33 -08:00
Jonathan Frederic
d07b05c8c4 Add actions dropdown to tree view 2015-01-25 18:08:33 -08:00
Min RK
3b1ac5c58f Merge pull request #7579 from Carreau/ntf
rename "new-file" to "new > text file"
2015-01-25 12:07:15 -08:00
Bussonnier Matthias
8bc4bbab68 remove "Saving..." notification 2015-01-25 20:33:24 +01:00
Matthias Bussonnier
1ce46a8723 Merge pull request #7481 from minrk/toggle-buttons-indicate
don't set bootstrap toggle on ToggleButtonsWidget
2015-01-25 20:20:53 +01:00
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
2015-01-25 19:59:16 +01:00
damianavila
1b520328d6 Fix the hidden x scrolling. 2015-01-25 12:50:28 -03:00
Bussonnier Matthias
caa5d499e9 rename "new-file" to "new > text file"
Because it is not obvious to everyone...

Closes #7571
2015-01-25 14:02:38 +01:00
Bussonnier Matthias
ab8290ae95 Catch and/or log a bit more errors. 2015-01-25 13:58:15 +01:00
Matthias Bussonnier
730c0b8822 Merge pull request #7522 from minrk/store-scroll
remember and persist manual scroll state.
2015-01-25 13:33:39 +01:00
Matthias Bussonnier
f5cbbd591f Merge pull request #7565 from minrk/missing-focusout
enable keyboard manager when codemirror is focused
2015-01-25 13:25:42 +01:00
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.
2015-01-24 12:46:15 -08:00
Min RK
83ce71aa53 Merge pull request #7551 from Carreau/xxs
fix left-margin on xxs screen
2015-01-24 12:18:11 -08:00
Min RK
d4eb36ea02 Merge pull request #7557 from minrk/different-resize
don't use flexbox to size `#site`
2015-01-24 12:11:09 -08:00
Min RK
d8ccd5e39b Merge pull request #7473 from Carreau/no-pager-jump
Smooth notebook scrolling on pager closing.
2015-01-24 11:58:44 -08:00
Min RK
525c16d721 hook up ScrollManager to #site 2015-01-24 11:56:52 -08:00
Bussonnier Matthias
c81ae8762e fix left-margin on xxs screen 2015-01-24 11:21:32 +01:00
Min RK
11a9feb25f enable keyboard manager when codemirror is focused
This should always be true, and mitigate focus-related keyboard bugs, such as #7555.
2015-01-23 17:10:01 -08:00
Thomas Kluyver
a2a407a271 Merge pull request #7563 from minrk/kernel-msg-docs
document restarting, dead kernel status messages
2015-01-23 16:12:45 -08:00
Thomas Kluyver
684cb28c33 Merge pull request #7559 from minrk/wait-for-kernel-selector
wait for new-notebook button to arrive
2015-01-23 16:07:11 -08:00
Min RK
67e5303614 Merge pull request #7521 from amcdawes/i7322
change keyboard help to use `esc` and adds key symbol table

closes #7322
2015-01-23 15:51:42 -08:00
Min RK
fabc9ab119 Merge pull request #7552 from minrk/terminal-unavailable
Indicate that terminals are unavailable
2015-01-23 15:29:53 -08:00
Min RK
315fb1528e remove inappropriate negative margin on menubar
caused 1px mismatch between header background and menubar
when toolbar is hidden.
2015-01-23 15:11:59 -08:00
Min RK
f971cad223 use translateZ(0) to avoid repaints of #site on scroll. 2015-01-23 15:11:59 -08:00
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.
2015-01-23 15:11:59 -08:00
Min RK
99faeddf36 wait for new-notebook button to arrive
before clicking it.

Race condition was causing intermittent test failures.
2015-01-23 15:07:25 -08:00
Jonathan Frederic
567183b154 Use output widget with interact 2015-01-23 12:29:12 -08:00
Jonathan Frederic
e4b6ef57ec Move get_ipython call into output widget constructor 2015-01-23 12:28:41 -08:00
Min RK
5dfece0a2a Merge pull request #7514 from minrk/border-markdown
add border to rendered markdown with cell toolbar
2015-01-22 21:42:37 -08:00
Min RK
57d5f7a4e0 Indicate that terminals are unavailable
rather than hiding any evidence of their existence
2015-01-22 18:43:18 -08:00
Min RK
3d96dfc6fb Merge pull request #7523 from jdfreder/outputwidgetfix
Fix the output widget
2015-01-22 17:02:59 -08:00
Andrew Dawes
98e77906e4 removed tab backward 2015-01-22 16:37:04 -08:00
Jason Grout
009dcf43cf change filename to unicode string 2015-01-22 23:06:18 +00:00
Thomas Kluyver
306ced6ac7 Merge pull request #7541 from minrk/no-no-default
remove preventDefault on menubar
2015-01-22 14:57:43 -08:00
Jonathan Frederic
374be802c0 Merge pull request #7517 from minrk/scroll-offset
don't use fixed header
2015-01-22 14:50:07 -08:00
Jason Grout
ad35813576 Make nbextension test a little clearer about the intent. 2015-01-22 22:33:45 +00:00
Min RK
e2c48d6df7 Merge pull request #7526 from jdfreder/editscroll
Explicitly size codemirror editor in Edit app
2015-01-22 14:25:02 -08:00
Jason Grout
9701ce1752 Add some unit tests for the new dictionary syntax for installing nbextensions 2015-01-22 21:49:33 +00:00
Jonathan Frederic
efe654e59d Use longer version of document.ready 2015-01-22 13:23:27 -08:00
Jason Grout
996d77cc89 Add documentation to check_nbextension, and switch order of parameters to be consistent with install_nbextension. 2015-01-22 21:23:12 +00:00
Jason Grout
25b475bc0a Refactor the logic to get the nbextension directory
We do this so that check_nbextension corresponds to install_nbextension.
2015-01-22 21:18:09 +00:00
Min RK
76624b9a93 remove preventDefault on menubar
no longer needed after removing fixed header
2015-01-22 13:08:01 -08:00
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.
2015-01-22 20:49:51 +00:00
Jason Grout
3beb707717 Copy as much of the nbextension as we can, even if there are errors for some of the files. 2015-01-22 20:47:10 +00:00
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.
2015-01-22 20:46:42 +00:00
Jason Grout
fc5a3bb304 Don't overwrite the dest variable 2015-01-22 20:41:27 +00:00
Min RK
ecb6dce489 add docstrings, validation to widget links 2015-01-22 12:05:23 -08:00
Jonathan Frederic
c248211ed6 Don't build message twice. 2015-01-22 11:15:43 -08:00
Jonathan Frederic
6eda2d80f9 Add support for Message class. 2015-01-22 10:45:06 -08:00
Jonathan Frederic
273a8030d9 Hook the output the right way. 2015-01-22 10:34:17 -08:00
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.
2015-01-22 18:23:39 +00:00
Jonathan Frederic
6b9558c613 Be a little more clear about sizing logic. 2015-01-22 09:51:49 -08:00
Andrew Dawes
8ed28bf57d cleaned up new function and removed comments 2015-01-21 21:03:06 -08:00
Andrew Dawes
09818e6b02 working function to build modifier key list 2015-01-21 20:54:19 -08:00
Min RK
cf25b8a93c fix printing 2015-01-21 17:14:53 -08:00
Thomas Kluyver
3c8ca375f3 Merge pull request #7525 from tbittner/document-interact-5637
Document interact 5637
2015-01-21 13:26:14 -08:00
Jonathan Frederic
bdd40e2734 Explicitly size codemirror editor in Edit app 2015-01-21 13:19:52 -08:00
Jonathan Frederic
526071cadb Remove superfluous return 2015-01-21 12:33:28 -08:00
Torsten Bittner
d5a7879a26 Add documentation for interactive function. 2015-01-21 12:25:28 -08:00
Jonathan Frederic
39b99340ed Finished changing output widget logic. 2015-01-21 11:27:19 -08:00
Min RK
ab221f09f9 toggle scroll from auto based on current scroll
rather than always `false`
2015-01-21 11:13:05 -08:00
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.
2015-01-21 11:12:29 -08:00
Andrew Dawes
1a10511143 new function build_key_names to automate 2015-01-21 11:01:23 -08:00
Andrew Dawes
471c1c9bba layout key modifiers in alert-warning box 2015-01-21 09:46:30 -08:00
Andrew Dawes
f37edd7eef rough draft of formatting 2015-01-21 07:44:26 -08:00
Andrew Dawes
c011dd9bfd first shot at adding list of key symbols, need to format nicely 2015-01-20 23:30:56 -08:00
Min RK
e1926b2f12 Merge pull request #7515 from jhamrick/fix-tour
Fix user interface tour

closes #5570 
closes #7418
2015-01-20 21:23:55 -08:00
Torsten Bittner
080f926c8e Add documentation for interact function. 2015-01-20 17:51:04 -08:00