Commit Graph

705 Commits

Author SHA1 Message Date
Fernando Perez
e8326241eb Add C-m-{'i', '.'} as keybindings for kernel interrupt/restart. 2011-10-16 20:02:53 -07:00
Fernando Perez
3db974a4f4 Padding adjustments to better use vertical and horizontal whitespace.
Verified that all prompts align correctly on linux/chrome + ffox, and
that input prompts up to 4 digits long still fit.
2011-10-16 20:02:53 -07:00
Fernando Perez
e00e604144 Add Ctrl-L as a way to toggle line-numbers for any individual code cell 2011-10-16 20:02:53 -07:00
MinRK
7041224f96 fix typo in stripping kernel args in nb and qt
closes #885
2011-10-16 19:56:47 -07:00
Felix Werner
a4bec7e65d Fixed testing of new notebook name before saving. 2011-10-16 19:35:18 +02:00
Felix Werner
f5b52442aa Notify the user of errors when saving a notebook. 2011-10-16 18:24:12 +02:00
Felix Werner
a89d947322 Update document title and last_saved_name only after a successful save. 2011-10-16 18:18:32 +02:00
Fernando Perez
13377a2d23 Merge branch 'carreau-mathjax-warning'
Warn user if MathJax can't be fetched from notebook

Closes #744.
2011-10-15 01:28:08 -07:00
Fernando Perez
87462b4259 Minor fixes to text and formatting of error message. 2011-10-15 01:27:36 -07:00
Fernando Perez
df43150509 Merge pull request #850 from fperez/codemirror
Update codemirror to 2.15 and make the code internally more version-agnostic.

Added our own README file with information about what changes we carry to upstream CodeMirror and what version we currently use.
2011-10-14 13:30:55 -07:00
Matthias BUSSONNIER
85ea4222fb Hide warning message about matjax when page load
also fix Matjax->MathJax
2011-10-14 19:28:36 +02:00
Matthias BUSSONNIER
b05d2c21a9 Matjax Warning message improvement.
merge '<script>' balises.
	Improve message text and style.
	Remove instead of hide
2011-10-14 11:10:15 +02:00
Fernando Perez
2c3172e236 Add MANIFEST to ignore list. 2011-10-13 22:13:30 -07:00
Fernando Perez
00af93da43 IPython-specific changes to CodeMirror: recognize '?' in Python mode. 2011-10-13 19:55:21 -07:00
MinRK
52592d47b1 fix missing trailing comma in kernel.js 2011-10-13 13:31:18 -07:00
MinRK
6e17e533c7 Merge PR #847 (connection files)
* JSON connection files are now used to connect files
* HMAC message signing is now on by default in all IPython apps
* Adds IPython.lib.kernel, which contains utility functions for connecting
  clients. These were mostly copied out of qtconsoleapp in order to be
  more general.
* Adds %connection_info and %qtconsole magics to zmqshell

closes gh-688
closes gh-806
closes gh-691
2011-10-13 12:05:23 -07:00
Matthias BUSSONNIER
4d5e605082 Warn user if MathJax can't be fetched from notebook
closes #744
2011-10-13 20:50:41 +02:00
MinRK
4d7ef4899e enable HMAC message signing by default in notebook kernels
This is separate from previous, because it is more likely to be rejected.

It requires the the Session objects in Handlers get a reference all the way back up to the IPython App that started the environment.
2011-10-12 21:28:04 -07:00
MinRK
b01c6ef0c4 use zmq.KernelManager to manage individual kernels in notebook
This means that proper restart is now available, rather than
killing and starting a new kernel, breaking connections to
secondary frontends.
2011-10-12 21:28:04 -07:00
MinRK
e38729c9b2 fix kernel_argv scrubbing to cover args passed with space
$> ipqt --shell 12345

would not scrub the port, previously
2011-10-12 21:28:03 -07:00
MinRK
4842607835 Merge branch 'stdin'
Changes stdin channel from REQ-REQ to ROUTER-DEALER, fixing
the round-robin load-balancing of stdin_requests across frontends.
stdin_requests now go to the client that made the execute_request
that prompted the stdin request.

stdin_requests from frontends that do not support stdin will raise an error,
rather than hanging on input that will never arrive.

reviewed by @fperez

closes #673
2011-10-12 15:27:44 -07:00
MinRK
4eb4926812 use ROUTER/DEALER sockets for stdin
stdin requests are now directed to the frontend that made the execution
request that called raw_input.

allow_stdin flag added to execution_request to indicate whether stdin_requests are allowed.

StdInNotImplementedError exception class added to IPython.core.error, and is raised if raw_input is called from execute requests where allow_input is undefined.

closes gh-673
2011-10-12 14:29:22 -07:00
Fernando Perez
b8bab4a051 Update templates to new directory name for codemirror. 2011-10-09 16:36:34 -07:00
Fernando Perez
9cca38f452 Do not use version # in codemirror directory name.
Simply call it 'codemirror', so we don't have explicit version numbers
inside a bunch of files.

A file called ipython-version-N.NN will be kept to easily let us know
which version we're shipping with IPython.
2011-10-09 16:36:34 -07:00
Fernando Perez
6b0fdf2356 Update CodeMirror code to v2.15 2011-10-09 16:36:34 -07:00
Fernando Perez
99c90f43c9 Merge pull request #845 from takluyver/py3-tests
This gets the bulk of the test suite passing on Python 3 - there's just a few isolated cases where it still doesn't.
2011-10-09 11:54:13 -07:00
Fernando Perez
b98add8e32 Fix setup.py script to be executable (other tools expect this) 2011-10-09 11:28:13 -07:00
Fernando Perez
43a4db17e6 Merge pull request #830 from minrk/stream
Several improvements to stdout/stderr handling and visual layout of cells.

Now stdout and stderr are kept contiguous (in a single div) if they are being written to continuously, and stderr is shown with a light red background to help distinguish from stdout.

Further, input cells now have a light gray background to help distinguish them from plain stdout areas.
2011-10-08 15:52:53 -07:00
Thomas Kluyver
ce1973748f Fix IPython.utils.sysinfo for Python 3. 2011-10-08 18:27:08 +01:00
Thomas Kluyver
c61d455a77 Various fixes to tests in IPython.utils. 2011-10-08 13:08:44 +01:00
MinRK
940d636656 fix Input prompt/code alignment
with note for future reference
2011-10-07 20:59:54 -07:00
MinRK
30028c3ca0 round corner and light bg on code areas
c/o @fperez
2011-10-07 19:05:19 -07:00
Fernando Perez
eba1a8c796 Merge pull request #801 from takluyver/py3-notebook
Gets the notebook working under Python3.
2011-10-07 18:57:32 -07:00
MinRK
c022dca01a small CSS adjustments in notebook
* add think border around input area
* change background instead of foreground on stderr
* only stderr/stdout are output_stream, general text (including streams) is output_text
* reduce vertical padding on stream output, per @fperez
2011-10-07 17:01:58 -07:00
Thomas Kluyver
295d73944c Merge branch 'trailling' 2011-10-04 16:08:51 +01:00
Bernardo B. Marques
8e32204222 remove all trailling spaces 2011-10-04 11:14:41 -03:00
Thomas Kluyver
609e4134ff Decode data for saving notebook, allowing saving in Python 3. 2011-10-02 16:19:30 +01:00
MinRK
788d7e6348 allow stdout/stderr to have distinct css
make stderr output darkred
2011-09-30 17:09:46 -07:00
MinRK
a9d9a8b72c support contiguous stream output in notebook
Consecutive messages to stdout or stderr will not be split
into separate divs, until a new message to different stream
arrives.

Appending will only occur when the latest output is the same
as the new one. Interleaving messages will still result in
multiple divs.
2011-09-30 17:08:04 -07:00
Fernando Perez
b4392a5e4f Merge pull request #821 from minrk/tornado21
update tornado dependency to 2.1, fixes to test_for in setup scripts.
2011-09-23 17:38:28 -07:00
MinRK
56c8403ac0 allow more processing in test_for
* test_for uses import_item, instead of __import__
* test_for now allows a callback, for processing the result of import_item prior to comparison with min_zmq
* callback is only called when min_zmq is defined
* callback's default is to just return mod.__version__
* use this to check tornado version, and zmq as a version tuple
* fix pexpect check to use external.pexpect
2011-09-23 16:57:40 -07:00
MinRK
50f9bd9ceb update tornado dependency to 2.1
The notebook server will no longer try to launch with 2.0.

Test imports and install doc updated to match.
2011-09-23 15:03:16 -07:00
Thomas Kluyver
0f5c0f67c9 Fix for notebook in Python 3. 2011-09-18 17:28:59 +01:00
MinRK
5dd7dce0b2 fix installation of zmq IOLoop into tornado
incorrectly overrode the module, rather than the class in the module, which is more reliable.
2011-09-15 15:12:52 -07:00
Brian Granger
b7ab64f304 fixConsole no longer trims the final text. 2011-09-12 21:12:08 -07:00
Yaroslav Halchenko
249f2f6ade ENH: initial .mailmap to unify major contributors appearance in shortlog
Now instead of
   785  Fernando Perez
   632  Brian Granger
   572  MinRK
   572  vivainio
   307  Thomas Kluyver
   253  fperez
   250  epatters
   205  Ville M. Vainio
   187  Brian E. Granger
   110  Gael Varoquaux
   106  walter.doerwald
    69  gvaroquaux
    52  Barry Wark
    45  Brian E Granger
    41  ldufrechou
    40  Robert Kern
    25  Jorgen Stenarson
    20  vivainio2
    16  Paul Ivanov
    15  bgranger
    ...

it would look like

  1052  Fernando Perez
   879  Brian E. Granger
   802  Ville M. Vainio
   588  Benjamin Ragan-Kelley
   307  Thomas Kluyver
   262  Evan Patterson
   180  Gael Varoquaux
   108  Walter Doerwald
    70  Laurent Dufréchou
    52  Barry Wark
    42  Robert Kern
...

There are more contributors which haven't yet been added to the mailmap
file
2011-09-12 17:08:51 -07:00
MinRK
88236a7ab8 always use StringIO, never cStringIO
cStringIO is not unicode-safe
2011-09-12 12:28:26 -07:00
Fernando Perez
8e43a08c2a Merge pull request #663 from takluyver/py3compat
Python 3 compatibility work.  This doesn't fully get us to a single codebase supporting py2/3 at install time, but it does make significant progress in that direction.
2011-09-08 20:12:13 -07:00
Thomas Kluyver
dba0917e83 Add Trove classifiers for PyPI. 2011-09-07 12:24:11 +01:00
Thomas Kluyver
4bf2e41967 Allow 'python setup.py install' to work correctly for either Python 2 or 3. 2011-09-07 12:22:32 +01:00