Commit Graph

8541 Commits

Author SHA1 Message Date
Peter Parente
258470e19c Support multicell selection in markdown conversion
Fixes #803

(c) Copyright IBM Corp. 2015
2015-12-08 22:31:52 -05:00
Peter Parente
eb2ad5fcf6 Support multicell selection in row text conversion
Fixes #804

(c) Copyright IBM Corp. 2015
2015-12-08 22:31:33 -05:00
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
Matthias Bussonnier
b382950432 Toggle scroll, collapse and clear cell now apply on selection.
Still need tests.

And as discussed a long time ago, the concept of toggling scrolling and
Collapsed is **not** the right one, it leads to inconsistencies.

The cell output has 3 states:
 - expanded
 - scrolled
 - collapsed

And the menu action should decide which one of the 3 user want.

Otherwise you get into inconsistencies like what is the difference
between collapsed & scrolled /vs/ collapsed & not scrolled.

Partially addresses #800 and #801 (I think)
2015-12-08 21:24:35 +01: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
57b9550b8d Fix test and move in their own file 2015-12-08 17:44:25 +01:00
Matthias Bussonnier
134351a744 Fist and test past_cell_replace with multi-selection
closes #792
2015-12-08 17:15:56 +01: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
Matthias Bussonnier
de405586e3 make certif 0o600 also. 2015-12-08 10:01:25 +01:00
Matthias Bussonnier
efc7e8f4ea Take comments into account 2015-12-08 09:55:36 +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
Pierre Gerold
6ba2104c4b finish the merge ... yeh I missed a <<<<<<<HEAD ... 2015-12-07 12:10:18 +01:00
Pierre Gerold
c218ff25f7 Merge branch 'master' into toto 2015-12-07 12:01:04 +01:00
Pierre Gerold
7d6c1c4774 Merge branch 'master' of https://github.com/jupyter/notebook 2015-12-07 11:53:38 +01:00
Pierre Gerold
fbcf2c403e remove flush after save (no atomic writing) 2015-12-07 11:52:52 +01:00
Pierre Gerold
28d6fbde84 Modify test + correct docstrings 2015-12-07 10:57:51 +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