Commit Graph

1167 Commits

Author SHA1 Message Date
Bussonnier Matthias
f200bd0392 Merge pull request #1974 from Carreau/notebook-path-completion
Allow path completion on notebook.
add slash (/) for unix,  backslash (\) and colon (:) for windows
as authorized characters in completions.
2012-06-19 23:42:32 -07:00
Min RK
1c0c9d7b9f Merge pull request #1979 from msabramo/testing
Add basic support for tox (http://tox.testrun.org/) and Travis CI (http://travis-ci.org/)
2012-06-19 20:24:48 -07:00
Marc Abramowitz
324c052184 Add .tox to .gitignore 2012-06-19 08:13:37 -07:00
Min RK
e97f84acd8 Merge pull request #1970 from minrk/resize
dblclick to restore resized images
2012-06-18 14:34:19 -07:00
Min RK
c797237e59 Merge pull request #1978 from kinverarity1/dot_truncation
Notebook names were truncating at the first period
2012-06-17 22:13:06 -07:00
Kent Inverarity
25ffbd89e0 change to minrk's suggestion from mailing list 2012-06-18 14:32:45 +09:30
Min RK
137f4cb441 Merge pull request #1825 from minrk/elide2
second attempt at scrolled long output

Some amount of CSS tweaking will probably want to be done before 0.13 final,
but this is good enough for beta.

closes #1553
2012-06-17 20:36:16 -07:00
Kent Inverarity
ef162c6d5c Fix nb name truncating at first period in filename 2012-06-18 10:35:16 +09:30
Fernando Perez
f52a1f689c Merge pull request #1934 from minrk/cellmd
Cell/Worksheet metadata

* metadata dicts are attached to cells and worksheets
* restores collapsed flag to the nbformat - this change happened in the refactor, and was undocumented, and possibly accidental.  But we should either document it or fix it, and this includes a fix.
* adds a new field, `nbformat_minor`, used to denote minor bumps of the notebook format that expose new capabilities but don't prevent loading by older clients.
* Add a warning in Javascript if loading a multiworksheet notebook (which will exist in the future) as current JS code will only save the first.


closes #1915
2012-06-17 17:21:35 -07:00
MinRK
18bb591723 add future-warning about multiple notebooks 2012-06-17 16:26:10 -07:00
Matthias BUSSONNIER
0161c55594 Allow path completion on notebook.
add -(dash) /(slash) \(antislash for windows) : (colon) ~(tilde)
as part of words symbol for notebook completer to help for path
completion

Fixes #1969
2012-06-17 13:37:55 +02:00
MinRK
9963980f37 use chained delay for setting resizable images 2012-06-16 21:20:04 -07:00
MinRK
e04fd13086 dblclick to restore size of images 2012-06-15 14:51:08 -07:00
Min RK
643837dff3 Merge pull request #1965 from ivanov/fix-1678
fix for #1678, undo no longer clears cells

With these changes, Ctrl-Z inside of codemirror cells will only undo up to the text that was in the cell when it was loaded from JSON.

closes #1678
2012-06-15 13:44:15 -07:00
Min RK
5a57dc5a1a Merge pull request #1952 from minrk/wsclose
avoid duplicate "Websockets closed" dialog on ws close
2012-06-15 01:54:04 -07:00
Paul Ivanov
ad07d0cf44 fix for #1678, undo no longer clears cells
I found another bug where switching the cell type causes the loss of all
undo history for that cell. With this commit, switching the cell type
simply resets the history
2012-06-14 17:36:34 -07:00
MinRK
c20b2e1056 slightly more subtle prompt overlay 2012-06-14 11:46:35 -07:00
MinRK
fa55ba2b43 fix margin typo on output prompt 2012-06-14 11:45:01 -07:00
MinRK
654fed95be avoid double websocket-close message 2012-06-13 14:52:39 -07:00
MinRK
224f024257 add dialog when loading newer minor-version notebooks 2012-06-13 02:27:23 -07:00
Fernando Perez
00ea424ed9 Merge pull request #1940 from Carreau/completer-css-patch
Fix completer css on some Chrome versions (was causing completer to be drawn at the wrong size).

Fixes #1833
2012-06-13 00:55:08 -07:00
Fernando Perez
b77baae951 Merge pull request #1938 from minrk/xreqxrep
Remove remaining references to deprecated XREP/XREQ names.

There was only one actual use of the deprecated constants in code, but numerous mentions in docstrings, etc.

These names have been removed from the next libzmq release, and will presumably be removed from pyzmq someday.
2012-06-13 00:53:08 -07:00
Matthias BUSSONNIER
623bb06c43 fix completer css on some Chrome versions
Fixes #1833
2012-06-13 09:50:36 +02:00
MinRK
58705f3a33 remove remaining references to deprecated XREP/XREQ names
only one line of actual code is changed.

these names have been removed from the next libzmq release,
and will presumably be removed from pyzmq someday.
2012-06-13 00:36:09 -07:00
Fernando Perez
ea6e18abf3 Merge pull request #1936 from minrk/savenotify
Increase duration of save messages and write permanent 'failed' message to the save status area on failed save.

Not a pop-up as described in #1461, but significantly more prominent, and most importantly permanent when saving fails, at least until the next successful save.

Closes #1461.
2012-06-13 00:22:58 -07:00
Fernando Perez
d81197455a Merge pull request #1849 from stefanv/octavemagic
Add %%octave, %octave, %octave_pull and %octave_push magics to facilitate interaction with Octave via oct2py.  This is similar in spirit to the R magic extension.
2012-06-12 23:52:57 -07:00
MinRK
ace8c72c9c increase duration of save messages
and write permanent 'failed' message to the save status area on failed save.
2012-06-12 20:36:29 -07:00
MinRK
ec50e94524 restore collapsed state for cells
js refactor removed this, but did not document the change.  This restores it, but it would be fine to revert this and update the docs instead.
2012-06-12 19:26:55 -07:00
MinRK
362feaa295 add empty metadata field on cells/worksheets
These are unused for now, but will allow adding data to the notebook without a full version bump.
2012-06-12 19:12:36 -07:00
Fernando Perez
b5e488d78c Merge pull request #1918 from minrk/nowarnquarantine
don't warn in iptest if deathrow/quarantine are missing, as they only exist in the dev source tree but are never installed.
2012-06-11 14:23:52 -07:00
MinRK
d73b4e428e don't warn in iptest if deathrow/quarantine are missing 2012-06-11 14:21:18 -07:00
Fernando Perez
b0357514ff Merge pull request #1911 from minrk/skipreload
Temporarily skip autoreload tests, as they were breaking Cython tests.

#1912 was created to track the issue that they need to be re-enabled, but isolated to their own group.
2012-06-11 12:44:38 -07:00
MinRK
33b0144b8f skip autoreload tests 2012-06-11 12:37:04 -07:00
MinRK
15689fb664 add toggle output scroll to quickhelp 2012-06-10 21:28:20 -07:00
MinRK
ed4ee44a21 add ^M-O for toggling output scroll 2012-06-10 21:26:17 -07:00
MinRK
5f0b08145e dblclick/double click for humans 2012-06-10 20:00:10 -07:00
Jonathan March
2d5555fb99 Merge pull request #1897 from minrk/exclude_glob
use glob for bad exclusion warning rather than explicit check for .py

closes #1896
2012-06-10 18:20:56 -07:00
MinRK
5b0d89a9ad use glob for bad exclusion warning
rather than explicit check for .py

closes #1896
2012-06-10 18:05:54 -07:00
Fernando Perez
4251457d9a Merge pull request #1870 from minrk/captureio
New `%%capture` cell magic captures stdout/err while running a cell.

Uses `capture_output()` context manager, moved to utils.io from IPython.parallel testing utilities, where it originated.

The caputre objects can be printed as a string, case in which they display the captured stdout, which is also available as `.stdout`.  The captured stderr, if any, is in a `.stderr` attribute.  A `.show()` method can be called to quickly print both, with stderr being correctly printed to the sys.stderr stream (so the notebook displays it with red highlighting).

closes #1863
2012-06-10 18:01:41 -07:00
Fernando Perez
3fde837087 Merge pull request #1867 from mcelrath/menu_borders
Fix 1px margin bouncing of selected menu item.

This fixes the margin of the active menu item to zero, so now the text doesn't shift around, even if you use larger fonts.

To reproduce the original error, zoom your notebook (ctrl-mousewheel, or ctrl-+ in most browsers) and try the menu.
2012-06-10 16:36:38 -07:00
Fernando Perez
b683e0fadc Merge pull request #1889 from invisibleroads/patch-3
Reconnect when the websocket connection closes unexpectedly.

Closes #1577.
2012-06-10 16:33:25 -07:00
Fernando Perez
60f6f874fb Merge pull request #1886 from tkf/fix-notebook-rename
Fix a bug in renaming notebook caused by keeping a stale reference to old names.
2012-06-10 16:31:20 -07:00
Fernando Perez
1c905f74af Merge pull request #1883 from mcelrath/mono_cursor_offset
Fix vertical offset due to bold/italics, and bad browser fonts.

Adds a dialog warning users when a problematic monospaced font is detected, so they can change their configuration.
2012-06-10 13:42:52 -07:00
mcelrath
5b2b7ed604 Add bad font detection, and a dialog informing the user. 2012-06-10 11:32:40 -07:00
Stefan van der Walt
c9a0f40dc5 Skip octavemagic tests if oct2py is unavailable. 2012-06-09 20:18:31 -07:00
MinRK
dd3e610882 third attempt at scrolled long output
click/double-click on prompt area for toggling scroll/collapse
2012-06-08 15:22:11 -07:00
Roy Hyunjin Han
ec3babe3ff Reconnect when the websocket connection closes unexpectedly 2012-06-09 04:05:58 +08:00
Takafumi Arakaki
635846dc74 Fix a bug in renaming notebook
There was a bug in NotebookManager.save_notebook_object.
Here is how to reproduce:

0. Make sure you don't have Untitled0.
1. Open new notebook Untitled0.
2. Rename it to something else.
3. Copy Untitled0.ipynb to the notebook dir from somewhere.
   (Do not use notebook UI.)
4. New copied Untitled0 cannot be opened.
   The renamed notebook is opened when tried.
   Indeed, accessing to http://localhost:XXXX/notebooks shows
   duplicated notebook_id.

The problem was that NotebookManager.rev_mapping keeps old notebook
name after renaming.
2012-06-08 20:26:46 +02:00
Brian E. Granger
cdfc81c542 Merge pull request #1829 from Carreau/notebook_cellmagic_completion
[notebook] don't care about leading prct in completion
2012-06-08 11:13:15 -07:00
Min RK
d4727ba7cf fix missing comma 2012-06-08 11:06:52 -07:00