Commit Graph

1143 Commits

Author SHA1 Message Date
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
MinRK
654fed95be avoid double websocket-close message 2012-06-13 14:52:39 -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
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
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
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
Brian E. Granger
dbd5199d77 Merge pull request #1832 from ellisonbg/imageresize
Make svg, jpeg and png images resizable in notebook.
2012-06-08 11:03:30 -07:00
Brian Granger
d27a86ef77 Removing resizable SVGs from output. 2012-06-08 11:02:39 -07:00
Brian Granger
41dbc82478 SVG images are now resizable in Chrome+FF. 2012-06-08 11:02:39 -07:00
Brian Granger
fc040f5da2 Resolving conflict in utils.js. 2012-06-08 11:02:15 -07:00
Brian Granger
4b1eec0eaf Make svg, jpeg and png images resizable in notebook. 2012-06-08 11:01:05 -07:00
Min RK
ebd26651ab Merge pull request #1674 from mdboom/notebook-carriage-return
HTML Notebook handles carriage-return special character
2012-06-08 10:57:06 -07:00
Michael Droettboom
8c053ac40c Fix rebase. 2012-06-08 09:36:16 -04:00
Matthias BUSSONNIER
d4e9858fef pep8 2012-06-08 12:12:20 +02:00
Matthias BUSSONNIER
cc62fc63f9 don't care about lleading prct in completion
mainly to avoid weird shared start with cell magics
2012-06-08 12:10:37 +02:00
mcelrath
a1604deeee Fix vertical offset due to bold/italics, and bad browser fonts. 2012-06-07 22:30:58 -07:00
Fernando Perez
9ebbfe3f22 Merge pull request #1841 from Carreau/deduplicate_completion
[notebook] deduplicate completion results

remove context completions that are duplicates from introspection
completion

fixes #1840
2012-06-07 20:12:43 -07:00
Michael Droettboom
b471db22e0 Fix the "test for nothing was streamed" so it doesn't add empty elements -- but only when there wasn't already something there. 2012-06-07 19:09:26 -04:00
Michael Droettboom
a9453360a9 Handle carriage return characters ("\r") in HTML notebook output.
Conflicts:

	IPython/frontend/html/notebook/static/js/utils.js
2012-06-07 19:08:54 -04:00
Michael Droettboom
f058068f53 Fix carriage-return handling regular expression so it doesn't treat "\r\n" as "\r". 2012-06-07 19:05:30 -04:00
MinRK
07f0eca24f move capture_output util from parallel tests to utils.io 2012-06-06 16:35:06 -07:00
Min RK
f75497d930 Merge pull request #1815 from ellisonbg/nbsavebug
Make : invalid in filenames in the Notebook JS code.

This only prevents : in the filenames on the JavaScript side of things. Handling this on the server side will be a separate issue that is related to other open issue. I will update those to reflect this. 

closes #1781
2012-06-06 16:24:04 -07:00
mcelrath
5612d07fea Fix 1px margin bouncing of selected menu item. 2012-06-06 12:33:21 -07:00
Matthias BUSSONNIER
567b6bbcd2 don't need to check for leading dot 2012-06-05 09:37:35 +02:00
Fernando Perez
1bf5ead0e8 Merge pull request #1856 from mcelrath/master
Fix 1px jumping of cells and menus in Notebook as selection moves around, by careful creation of 1px outlines.
2012-06-04 18:01:08 -07:00
mcelrath
faa214178e Fix 1px jumping of cells and menus in Notebook. 2012-06-04 17:31:51 -07:00
Fernando Perez
22c5d421fc Merge pull request #1780 from jonathan-taylor/rmagic_extension
Rmagic extension to use R (the statistical package) seamlessly from IPython.

The rmagic extension allows R inline code as well as cell level magics. An example notebook is provided in docs/examples/notebooks/rmagic_extension.ipynb to demonstrate its usage.

Main points:

1) Allows capture of plots to R via inline png plots (like --pylab inline)

2) Allows capture of R's stdout() connection to the notebook

3) Allows simple push/pull for array data to/from R (via rpy2) with copy only on push to R -- this seems necessary.
2012-06-04 16:25:44 -07:00
Matthias BUSSONNIER
795cb7bb21 bracket on same line 2012-06-04 12:00:23 +02:00
Fernando Perez
27eac3b78c Merge pull request #1847 from minrk/inlinecfg
add InlineBackend to ConsoleApp class list, so it will be included in generated config files / help-all output of the appropriate entry points.

This will alleviate some of the annoyance discussed on the list, because the config file will have the whole default rc commented out, so the starting point for user-edits is no change, rather than a blank slate.
2012-06-03 21:53:35 -07:00
MinRK
91180c0511 add InlineBackend to ConsoleApp class list
so it will be included in generated config files / help-all output
2012-06-03 21:40:01 -07:00