Commit Graph

1117 Commits

Author SHA1 Message Date
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
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
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
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
Matthias BUSSONNIER
9cfdea0d1c take care of token starting by '.' (dot) 2012-06-03 13:18:43 +02:00
Matthias BUSSONNIER
d74a58b3c8 [notebook] deduplicate completion results
remove context completion that are duplicates from introspection
completion
fixes #1840
2012-06-03 11:36:07 +02:00
Fernando Perez
8d5c980526 Small fixes to mailmap file 2012-06-02 15:42:30 -07:00
Brian E. Granger
aa19b3feb6 Merge pull request #1821 from ellisonbg/nbrename-enter
ENTER submits the rename notebook dialog.
2012-05-31 21:59:20 -07:00
Brian Granger
fc096c7232 Using IPython.utils.keycodes in the nb rename dialog. 2012-05-31 21:57:42 -07:00
Brian Granger
010c35b130 Making the input text area watch for ENTER in nb renames. 2012-05-31 21:55:33 -07:00
Brian Granger
4dc94e29c8 ENTER submits the rename notebook dialog. 2012-05-31 21:55:33 -07:00
Brian E. Granger
c57fa1cd6a Merge pull request #1820 from bfroehle/port_selection_2
NotebookApp: Make the number of ports to retry user configurable.
2012-05-31 21:47:35 -07:00
Brian E. Granger
81aa090ce0 Merge pull request #1816 from ellisonbg/nbname
Always use filename as the notebook name.
2012-05-31 21:34:49 -07:00
Fernando Perez
d12819830f Merge pull request #1813 from takluyver/nose-assert-methods
Add assert_in method to nose for Python 2.6.

Closes #1775.
2012-05-31 18:02:32 -07:00
Fernando Perez
ac548bd8bc Merge pull request #1711 from ipython/tooltipCompleterJSRefactor
New Tooltip, New Completer and JS Refactor.

This is a major reworking of lots of notebook client code, both introducing new features and allowing certain things to be done more cleanly:

- New graphical tooltip with keyboard control: successive presses of the TAB key will expand it, pin it for 10 s (a clock icon is shown), and send its content to the bottom help pager (which is now resizable).

- Completer has been refactored into a new class and now can analyze the current cell to support completions on objects that don't exist in the kernel yet (because the cell hasn't been executed).

- All the client-side JavaScript has been decoupled to ease reuse of parts of the machinery without having to build a full-blown notebook. This will make it much easier to communicate with an IPython kernel from existing web pages and to integrate single cells into other sites, without loading the full notebook document-like UI.

- This refactoring also enables the possibility of writing dynamic javascript widgets that are returned from Python code and that present an interactive view to the user, with callbacks in Javascript executing calls to the Kernel.  This will enable many interactive elements to be added by users in notebooks.  

An example of this capability has been provided as a proof of concept in `docs/examples/widgets` that lets you directly communicate with one or more parallel engines, acting as a mini-console for parallel debugging and introspection.

Closes #1498.
2012-05-31 17:25:17 -07:00
Bradley M. Froehle
7c1091c299 exit if server cannot start (instead of ugly traceback) 2012-05-31 16:24:22 -07:00
Bradley M. Froehle
6faad7f38f NotebookApp: Make the number of ports to retry user configurable.
Closes gh-1750.
2012-05-31 15:06:33 -07:00
Brian Granger
09da6cb8af Always use filename as the notebook name. 2012-05-31 14:01:36 -07:00
Brian Granger
4c2e42e9db Make : invalid in filenames in the Notebook JS code. 2012-05-31 13:33:34 -07:00
Brian Granger
4c31453ea7 Making Notebook.set_dirty an event so CodeCell can set it.
This allows code outside notebook.js to set the dirty flag, but
doesn't require that code depend on notebook.js.
2012-05-31 13:29:22 -07:00
Fernando Perez
41665e4483 Ensure that no tests are attempted if numpy or rpy2 are not present.
This prevents both importing of the extension itself and running of
the test suite.
2012-05-31 13:25:03 -07:00
Brian Granger
9826a17ae2 Removing cell from execute callbacks in kernel.js. 2012-05-31 13:24:10 -07:00
Thomas Kluyver
b47a0cfda9 Add assert_in method to nose for Python 2.6 2012-05-31 21:23:29 +01:00
Brian Granger
e817bfdaeb Update directview.ipynb & allowing no-callbacks in kernel.execute. 2012-05-31 13:08:34 -07:00
Brian Granger
94b24d6ac9 Moving direct view widget to docs/examples. 2012-05-31 13:08:33 -07:00
Brian Granger
9c94c996ae Removing extra call to Kernel.stop_channels. 2012-05-31 13:08:33 -07:00
Takafumi Arakaki
0df931d69a Reduce repeated code regarding restarting events 2012-05-31 13:08:33 -07:00
Takafumi Arakaki
db5393c618 Clear window title when kernel is restarted
When kernel is died and restarted, or restarted while it is in the
busy state, message "(Busy)" on the window title is not updated.  This
problem is fixed by updating document title when restarting.
2012-05-31 13:08:32 -07:00
Matthias BUSSONNIER
9f319f6da9 click on close cancell stick 2012-05-31 13:08:32 -07:00
Matthias BUSSONNIER
366cba5916 retab tab to space 2012-05-31 13:08:32 -07:00