Commit Graph

516 Commits

Author SHA1 Message Date
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
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
Thomas Kluyver
56a2b006e0 Make installation with Python 3 possible. 2011-09-07 12:18:47 +01:00
MinRK
3ee19c6563 only store hashed user_id in notebook cookie
hashed user_id is used for authentication, rather than hashed password.  Thus, user cookie is only set after authentication succeeds.
2011-09-06 15:48:20 -07:00
Brian E. Granger
98393e9a28 Merge branch 'enh/httpauth' of https://github.com/satra/ipython into satra-enh/httpauth 2011-09-06 14:13:12 -07:00
Brian E. Granger
1ae92b2d88 Merge pull request #748 from ellisonbg/tornado-iptest
Check for tornado before running frontend.html tests.
2011-09-06 14:10:58 -07:00
MinRK
d11ef986a4 authenticate Websockets with the session cookie
Now all Notebook connections are authenticated.
2011-08-30 16:27:12 -07:00
MinRK
152fe1b6f1 Authenticate all notebook requests (except websockets)
* BaseHandler renamed AuthenticatedHandler
* also clears cookies if invalid, to prevent repeated 'Invalid cookie signature' warning messages.
2011-08-30 12:13:30 -07:00
MinRK
dbfe19f6e2 notebook auth adjustments
* keyword -> password
* removed password alias
* add login.html as template
* new cookie key for each Server instance
2011-08-30 11:24:52 -07:00
Brian E. Granger
8c76fcf71c Fixing Ctrl-Enter on Firefox. 2011-08-30 09:51:06 -07:00
Brian E. Granger
408fde5aa3 Check for tornado before running frontend.html tests. 2011-08-30 09:39:57 -07:00
Satrajit Ghosh
00986be4f8 fix: added keyword to notebook aliases 2011-08-29 21:36:39 +03:00
Satrajit Ghosh
546a0147fb fix: changed keyword input field to type password 2011-08-27 22:37:44 +03:00
MinRK
549cf4ee2a fix undefined 'session_id' member in kernel.js 2011-08-26 23:18:48 -07:00
Satrajit Ghosh
c4d90c8a08 enh: added authentication ability for webapp 2011-08-27 07:09:57 +02:00
Brian E. Granger
1021c3dc88 Merge branch 'fix/https' of https://github.com/satra/ipython into satra-fix/https 2011-08-25 11:43:58 -07:00
Brian E. Granger
c6d030761e Merge branch 'placeholder' of https://github.com/minrk/ipython into minrk-placeholder 2011-08-25 11:41:26 -07:00
MinRK
3aed0a0b94 use null char to start text cell placeholders 2011-08-25 08:51:30 -07:00
Satrajit Ghosh
7d0467df1c fix: applied fernando's if simplification fix 2011-08-25 12:25:26 +02:00
Satrajit Ghosh
1ae18b5be7 fix: display secure url with proper protocol 2011-08-25 11:42:17 +02:00
Fernando Perez
5eaf0061e3 Merge branch 'ellisonbg-nb-bugfixes'
- remove stable urls for notebooks that were causing nasty problems
with notebook renames.
- ctrl-enter now leaves input in place.
- add info messages to http errors
2011-08-25 02:30:10 -07:00
Fernando Perez
d1cfedaf16 Leave commented-out stable url code for reference, with TODO. 2011-08-25 02:29:33 -07:00
Brian E. Granger
f1e4a59777 Adding messages to HTTPError raising.
These messages are not returned to the browser, but are printed
to the server logs and will help the code readability.
I have also used a more specific code in some cases.
2011-08-24 11:29:16 -07:00
Brian E. Granger
acc81dfbee Ctrl-Enter now does not delete input, but selects it. 2011-08-24 10:31:41 -07:00
Brian E. Granger
fa8ab6f37d Going back to using uuid.uuid4() for notebook ids.
We were having problems with notebook renaming when using uuid5,
as there are many places in the code where we assume that the
notebook id is unique and unchanging as long as the notebook
server runs.
2011-08-24 10:16:21 -07:00
Brian E. Granger
706819d81c Merge branch 'htmlnotebook' 2011-08-23 15:47:57 -07:00
Brian E. Granger
0b19dd7bfe Temporary fix for placeholder related CM bug. 2011-08-23 12:31:37 -07:00
Brian E. Granger
c2df8a9005 Merge branch 'mathjax' of https://github.com/minrk/ipython into minrk-mathjax 2011-08-22 16:24:53 -07:00
MinRK
ba1df9be55 underline keyboard shortcut letter on buttons 2011-08-21 17:55:45 -07:00
Fernando Perez
b8c1ab1ada Fix above/below keybinding mismatch and rename api to use above/below 2011-08-21 17:54:03 -07:00
Fernando Perez
3517c4a713 Merge pull request #717 from stefanv/htmlnotebook_highlight_markdown
Add source highlighting to markdown snippets, with a theme matching the CodeMirror one we use.

This only highlights source code in blocks that are indented 4 spaces in markdown cells, leaving <pre> blocks alone.  If highlight is desired in <pre> blocks, a further <code> block must be created.

The visual theme matches the one used for CodeMirror as much as possible.
2011-08-21 15:09:14 -07:00
Stefan van der Walt
3a8811e115 Add code highlighting to markdown cells. 2011-08-21 14:14:16 -07:00
MinRK
638bc02a8f update notebook template to prefer offline mathjax 2011-08-20 17:01:56 -07:00
MinRK
a094ada137 Add utility function for installing mathjax for offline use
from IPython.external.mathjax import install_mathjax

install_mathjax()

* add mathjax destination to gitignore
2011-08-20 17:01:44 -07:00
Brian E. Granger
ab788fb18e Merge pull request #713 from stefanv/htmlnotebook_help_dialog
Align colons in html notebook help dialog
2011-08-20 16:48:30 -07:00
Stefan van der Walt
dfeb4342ed Align colons in help dialog. 2011-08-20 14:56:10 -07:00
Brian E. Granger
d60edf973d Changing prev/next keyboard shortcut to use p/n. 2011-08-19 22:00:25 -07:00
Brian E. Granger
b89d656a3c Fixing console.log messages related to keyboard shortcuts. 2011-08-19 21:49:32 -07:00
Brian E. Granger
cf0c66fe4e Adding keyboard shortcut help dialog. 2011-08-19 21:24:08 -07:00
Brian E. Granger
d3e67106a1 Adding keyboard shortcuts. 2011-08-19 20:10:32 -07:00
Fernando Perez
2522a651d9 Right-align prompts to remove spurious whitespace. 2011-08-19 17:46:46 -07:00