Commit Graph

3908 Commits

Author SHA1 Message Date
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
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