Commit Graph

8373 Commits

Author SHA1 Message Date
Peter Parente
e641f5fe1f Add doc string to cells_to_code 2015-12-08 22:23:32 -05:00
Pierre Gerold
5a8cc0a75d add maintoolbar fix for cells_to_code 2015-12-08 22:21:16 -05:00
Pierre Gerold
77210286d3 some ; missings 2015-12-08 22:21:16 -05:00
Pierre Gerold
e3299328d2 to_code -> cells_to_code to handle muliple selected cells 2015-12-08 22:21:16 -05:00
Brian E. Granger
cdd59fd140 Merge pull request #798 from Carreau/pluralize
Pluralize commands in menu that can act on many cells.
2015-12-08 09:35:53 -08:00
Matthias Bussonnier
c42d43f6c4 Pluralize commands in menu that can act on many cells.
Should we put the `s` in parenthesis ?
2015-12-08 16:02:48 +01:00
Min RK
c882b27732 Merge pull request #786 from minrk/4.1-docs
4.1 changelog and docs
2015-12-07 21:44:56 +01:00
Brian E. Granger
feb83d6c9d Merge pull request #708 from Carreau/fix-shift-jk
[WIP] Prototype to fix Shift-J/K selection with anchor and cursor
2015-12-04 10:55:41 -08:00
Thomas Kluyver
6325a1a4a7 Merge pull request #787 from parente/patch-1
Fix ConfigWithDefaults "this" context
2015-12-04 15:23:04 +00:00
Peter Parente
2ace23d841 Fix ConfigWithDefaults "this" context
Within the promise callback, refer to the ConfigWithDefaults instance, not the Promise
2015-12-04 09:46:11 -05:00
Min RK
8024000a0e regen rst notebooks
with pandoc-1.15.2.1

fixes some heading inconsistencies
2015-12-04 13:36:30 +01:00
Min RK
1bbeb54673 rst can't handle arbitrary heading levels 2015-12-04 13:36:30 +01:00
Min RK
dfc51fae35 don't mention profiles in nbextensions 2015-12-04 13:36:30 +01:00
Min RK
5bbab29286 update 4.1 changelog
with screenshots of new UI
2015-12-04 13:36:30 +01:00
Thomas Kluyver
bdb8ca88ce Merge pull request #785 from mmarchetti/fix/json-header-error
Fix secondary error that occurs during handling of HTTP 500 status
2015-12-03 20:16:39 +00:00
Michael Marchetti
536a6d64dc Use dict() to convert the mapping to a dictionary 2015-12-03 12:49:12 -05:00
Michael Marchetti
5639ac7134 Fix secondary error that occurs during handling of HTTP 500 status
In log.py, we're attempting to log the request headers when a
500-series error occurs, but tornado.httputil.HTTPHeaders isn't a dict -
it inherits from collections.MutableMapping. So it fails during
JSON serialization. The fix is to convert it to a dict first.

Unfortunately, the HTTPHeaders class doesn't expose any methods
to access the underlying dictionary (`request.headers._dict`) directly,
so we recreate it using the public API.
2015-12-03 08:38:50 -05:00
Matthias Bussonnier
f05dfae0f3 Rework multiple selections to be continuous
It use the notion of Head/Anchor moving the selection normally move both
the head and the anchor. It is possible to mot move the anchor, for
example by pressing Shift.

Everything in between the head and the anchor (head and anchor included)
is in a "soft-selection" marked with the 'jupyter-soft-selection' class
in CSS.

This then remove completely the notion of marked cell, and thus disallow
discontinuous selection.

Unlike previous implementation the used a thick left border, this use
background gradient with 2 stops at the same position to archived the
same visual effect without the gap in between left border in between
contiguous cells.

For compatibility with previous versions, a few choices have been made.
An extra multi-selected class is added to the body when multiple
cells are selected. This allow to toggle the background to a soft blue
indicating selection. And the Head of the selection is still called the
"selected" cell.

The on_focus event have been reworked as a
click-let-click-release-outside of codemirror was putting the notebook
in undefined state with multiple selected cells, and the head in edit
mode.

Finally Travis now test on edge group, to get faster, which can be
removed in a few weeks as the all infrastructure of Travis will move on
Google Cloud.
2015-12-02 14:15:09 +01:00
Thomas Kluyver
d732e28cb2 Merge pull request #711 from minrk/allow-async-kernel-manager
allow some KernelManager methods to be async
2015-12-02 11:59:39 +00:00
Min RK
b006b747ab Merge pull request #781 from takluyver/rm-classifier-py33
Remove explicit Python 3.3 classifier
2015-12-02 10:24:31 +01:00
Min RK
377f4f24dc Merge pull request #783 from marceloramires/master
Fixing way in which selection ranges are deleted
2015-12-02 10:23:20 +01:00
Min RK
240d6bc40a Merge pull request #784 from captainsafia/add-more-tests-for-file-rename
Updated tests on rename in ContentsManager
2015-12-02 09:21:37 +01:00
Safia Abdalla
4e8344831c Updated tests on rename in ContentsManager 2015-12-01 22:08:42 -06:00
marcelo-ramires
89b7d96ccd Fixing way in which selection ranges are deleted 2015-12-02 00:18:33 -02:00
Thomas Kluyver
447c0f2922 Merge pull request #782 from jcb91/document-extensions
More info on front-end extensions
2015-12-01 16:08:08 +00:00
Josh Barnes
9e9828f624 in docs/extending/frontend_extensions:
* fix 'the' typo
2015-12-01 15:57:54 +00:00
Thomas Kluyver
edd8fdd44c Merge pull request #631 from jcb91/feature/celltoolbar_fix
fix incorrect html structure from cell toolbar generator functions
2015-12-01 15:22:58 +00:00
Thomas Kluyver
9bcac1d629 Remove explicit Python 3.3 classifier
If we're going to explicitly list 3.3, we should also be listing 3.4 and
3.5. But really we're compatible with any fairly recent Python 3
version, and will probably be compatible with future versions, so I
think it's best to just use the overall Python 3 classifier.
2015-12-01 15:00:37 +00:00
Josh Barnes
99f6379f14 in docs/extending/frontend_extensions:
* Add some description of actions
2015-12-01 13:54:21 +00:00
Josh Barnes
71f5a1969e in docs/extending/frontend_extensions:
* fix AMD link to use RST syntax (mistakenly used markdown previously)
2015-12-01 13:54:21 +00:00
Josh Barnes
bf44aace54 in docs/extending/frontend_extensions:
* fix inline literals, which in RST start and end with ``, not just `
2015-12-01 13:54:20 +00:00
Josh Barnes
ad7e657e5c in docs/extending/frontend_extensions:
* beautify javascript examples
* make one-liners fit on one line
2015-12-01 13:54:18 +00:00
Josh Barnes
67c6aaafae in docs/extending/frontend_extensions:
* fix some typos & misspellings
* some improvements to phrasing
2015-12-01 12:23:48 +00:00
Min RK
addc7eb5d9 Merge pull request #758 from Carreau/document-extensions
Start documenting how to write frontend extensions
2015-12-01 11:54:41 +01:00
Min RK
b2e33823cb Merge pull request #765 from marceloramires/master
Fixing backspace on multiple selection bug
2015-12-01 11:42:43 +01:00
Min RK
f78e3f0d76 Merge pull request #779 from captainsafia/add-tests-for-dir-rename
Add tests for directory renaming under ContentsManager
2015-12-01 11:38:55 +01:00
Min RK
ba344843eb add SessionManager.close
allows explicit closing, rather than relying on implicit del,
which can run in the wrong thread.
2015-12-01 11:36:22 +01:00
Min RK
cfa64552b2 initialize Application in background thread
rather than initializing in main and starting in background, which seemed to cause occasional issues.

Also fix checking for dead notebook, which is no longer a subprocess.
2015-12-01 11:35:59 +01:00
Min RK
9043ae145c handle async in sessions
needed because sessions call kernel methods
2015-12-01 11:10:24 +01:00
Min RK
6024f04698 allow some KernelManager methods to be async
Allows custom KernelManagers to do slower async operations as part of kernel startup/shutdown.
2015-12-01 11:10:24 +01:00
Min RK
20d858a02a Merge pull request #706 from Carreau/ugly-fix
Work around jump/scroll on heading links
2015-12-01 11:04:39 +01:00
Min RK
1d934b3a9a Merge pull request #777 from jcb91/bugfix/keyboard
give defined ordering to keyboard shortcuts with the same help_index
2015-12-01 10:50:45 +01:00
Matthias Bussonnier
66f7390f8d missing N 2015-12-01 10:27:36 +01:00
Matthias Bussonnier
cdb7c7b843 Merge pull request #770 from SylvainCorlay/module_names
Use jquery-ui instead of jqueryui
2015-12-01 10:14:49 +01:00
Jonathan Frederic
ca4ec66f5a Merge pull request #763 from Carreau/fixWaitForOutput
Timeout is an option of `waitFor`, not `then`
2015-11-30 16:17:18 -08:00
Safia Abdalla
8e0a8d1ea6 Added tests for directory renaming 2015-11-30 17:52:01 -06:00
Josh Barnes
1a855af8f2 give defined ordering to keyboard shortcuts with the same help_index 2015-11-30 21:19:29 +00:00
Matthias Bussonnier
33b22f77b3 Merge pull request #6 from takluyver/document-extensions
English fixes and update description of installing and activating extensions
2015-11-30 19:36:53 +01:00
Thomas Kluyver
92caca5683 English fixes and update description of installing and activating extensions 2015-11-30 18:26:25 +00:00
Sylvain Corlay
f32651e202 Use jquery-ui instead of jqueryui 2015-11-30 11:28:47 -05:00