Commit Graph

1933 Commits

Author SHA1 Message Date
Brian E. Granger
29a1296ef6 Changing mode name from python -> ipython. 2013-04-27 22:21:13 -07:00
Brian E. Granger
137a40ac96 Fixing typo in ntoebook.html. 2013-04-27 22:18:22 -07:00
Brian E. Granger
222a4f61df Updating ipython CM mode. 2013-04-27 22:17:58 -07:00
Brian E. Granger
ea4eb9b351 Copying CodeMirror's python mode into place for our ipython mode. 2013-04-27 22:14:54 -07:00
Brian E. Granger
d2460ee0c5 Add components to static URLs. 2013-04-27 22:03:34 -07:00
Brian E. Granger
72d7b6ff39 Updating tooltip.less for CM3 behavior. 2013-04-27 22:01:44 -07:00
Brian E. Granger
6e08dc37fa In CM3, the class that needs autogrow has changed. 2013-04-27 22:00:21 -07:00
Brian E. Granger
c666acbe5e Updating tooltip.js to work with CM3. 2013-04-27 21:55:11 -07:00
Brian E. Granger
ed8d859d66 Updating path to codemirror. 2013-04-27 21:53:37 -07:00
Brian E. Granger
85908b1765 Moving cmtemp -> codemirror. 2013-04-27 21:50:57 -07:00
Brian E. Granger
154df41ac3 Moving CodeMirror -> cmtemp 2013-04-27 21:50:34 -07:00
Brian E. Granger
a36d867882 Removing tests from fabfile that are no longer needed. 2013-04-27 17:53:41 -07:00
Brian E. Granger
836f68e4ad Adding our current components directory.
This commit adds the right versions of:

* Bootstrap
* Jquery
* less.js
* CodeMirror

We should always use bower to manage these packages in the
future. BUT, we are not yet using this version of jquery as
we still rely on an older crazy-branch version of jquery.ui.
2013-04-27 17:42:38 -07:00
Brian E. Granger
efb02563f8 Removing static/components from .gitignore-we want to ship this. 2013-04-27 17:41:53 -07:00
Fernando Perez
cf430dd81f Merge pull request #3229 from ellisonbg/htmloutput
The HTML output type accidentally got removed from the OutputArea.
2013-04-27 17:11:23 -07:00
Brian E. Granger
b5ad7db080 The HTML output type accidentally got removed from the OutputArea.
This commit adds it back at the approp. point in the
OutputArea.display_order.
2013-04-27 17:04:32 -07:00
Fernando Perez
7da43f8ebb Merge pull request #3226 from ellisonbg/renamedialog
Text in rename dialog was way too big - making it <p>.
2013-04-27 15:20:40 -07:00
Brian E. Granger
3a515880ae Text in rename dialog was way too big - making it <p>. 2013-04-27 15:16:02 -07:00
Fernando Perez
44f74c9ad2 Merge pull request #3225 from ellisonbg/removerst
Removing old restuctured text handler and web service, that are completely unused.
2013-04-27 15:14:24 -07:00
Brian E. Granger
e416cb8658 Removing old restuctured text handler and web service. 2013-04-27 15:08:38 -07:00
Min RK
37baa17f9c Merge pull request #3223 from minrk/fixmathjax
add missing mathjax_url to new settings dict
2013-04-27 09:31:21 -07:00
MinRK
82f0f359ac add missing mathjax_url to new settings dict 2013-04-27 09:29:17 -07:00
Brian E. Granger
41ffe3d027 Merge pull request #3089 from minrk/stdin
add stdin to the notebook
2013-04-25 21:11:47 -07:00
MinRK
43eb765793 js comment about session id in first message 2013-04-25 21:05:07 -07:00
MinRK
f51425ed28 clarify first ws message names / messages 2013-04-25 20:43:33 -07:00
Min RK
28e45df7ec Merge pull request #3221 from dwyde/remove-html-cell
Remove references to HTMLCell (dead code)

Closes #2980.
2013-04-25 19:25:19 -07:00
MinRK
938a5b5dbc tweak raw_input style
more crowded, less jumpy
2013-04-25 17:28:03 -07:00
David Wyde
11b72681e2 Remove references to HTMLCell (dead code). 2013-04-25 19:26:18 -05:00
MinRK
ba79b60c35 fix color in raw_input 2013-04-25 16:19:15 -07:00
MinRK
3fbb99e61a add no-op on_message for iopub 2013-04-25 16:07:51 -07:00
MinRK
31c8fb1fb6 tweak raw-input styling
should fix alignment of raw_input and prompt
2013-04-25 14:18:21 -07:00
MinRK
f09eaf7b5e cleanup stdin event submission
follow example in rename notebook: remove form, bind keydown for enter,
avoiding shift-enter submitting the cell again.
2013-04-25 14:18:21 -07:00
MinRK
5b434b705f use inline raw_input instead of a dialog 2013-04-25 12:24:38 -07:00
MinRK
f38f2b7ac4 add stdin to notebook
dumb / gross / ugly jQuery modal dialog for now,
but it works!
2013-04-25 12:24:38 -07:00
MinRK
74f8972505 specify socket identity from kernel.js
required for stdin routing
2013-04-25 12:24:37 -07:00
MinRK
510897f0aa add stdin channel to NotebookApp 2013-04-25 12:24:20 -07:00
MinRK
f4b937767e share code between zmq channel handlers 2013-04-25 12:24:18 -07:00
Brian E. Granger
0d6676f340 Merge pull request #3088 from minrk/nbsettings
cleanup IPython handler settings
2013-04-25 12:19:44 -07:00
MinRK
217e38f102 hook up proper loggers
use IPython logger as first choice, fall back on tornado logger
(for use in non-IPython apps).
2013-04-25 12:15:49 -07:00
Brian E. Granger
646dcf77a4 Merge pull request #3201 from minrk/fastcolor
use much faster regexp for ansi coloring
2013-04-25 12:07:23 -07:00
MinRK
8c5a44813c hook up tornado 3's loggers to our handlers 2013-04-25 11:58:58 -07:00
MinRK
f0f0843cf2 define clear_cookie on websocket handler
as a no-op
2013-04-25 11:29:01 -07:00
MinRK
f887f050aa cleanup IPython handler settings
move settings to the tornado settings dict,
rather than a mixture of tornado settings and application references,
and application.ipython_app references.

removes any reference to application / ipython_app attributes in the handlers,
in favor of the tornado settings dict.
These were a massive pain for anyone who might want to re-use our handlers.
2013-04-25 10:06:10 -07:00
Brian E. Granger
13032d01ba Merge pull request #3011 from minrk/kernelclient
IPEP 12: add KernelClient
2013-04-25 10:04:47 -07:00
Min RK
2e5e595359 Merge pull request #3174 from Carreau/simple-class
Simple less classes

Simplify class handeling in js/css

Instead of setting several class (e.g: `cell vbox`) per dom element, use less to embed the definition of `vbox` into `cell`.

This should allow : 
   - more easy theming.
   - responsive css on  nbviewer 

There are many other places where this can be done.
2013-04-24 10:50:10 -07:00
Min RK
6ce1901e83 Merge pull request #2979 from Carreau/cm-configurable
CM configurable Take 2

Change the way configurability works.
Config dict should be passed down to the parent class where it will be
merged with the default value and propagate to this only in the base
class.

This allow to both alter the configuration on a per instance basis, or
globaly by tempering with the class instance.

This also get rid of IPython global in some cases.

-- 

Still not **perfect** but I think this is the limit of my js knowledge, there is a minimal amount of code of 4 line to propagate the configuration :

```
var options = {foo:bar}; // default options can be class parameter
var overwrite_options ={boo:baz}; // came from args, or not
options = this.mergeopt(CodeCell, options, overwrite options);
IPython.Cell.apply(this,[options]);
```
2013-04-24 10:46:56 -07:00
Min RK
33e4fdb600 Merge pull request #3181 from minrk/ifsince
backport If-Modified-Since fix from tornado

See facebook/tornado#713

closes #3177
2013-04-23 21:59:58 -07:00
MinRK
08cbf96075 don't restart channels on kernel restart
it wasn't actually necessary (proper fix in previous commit)
2013-04-23 21:47:51 -07:00
MinRK
e854617caf restart channels on kernel restart
generally not necessary, but sometimes the kernel connection can be dirty.
We have only seen this by starting a qtconsole via %qtconsole,
then killing the kernel, at which point the original notebook's connection
(at the zmq level) is never restored to the new kernel at the same endpoint.
It's weird, and probably a zmq bug, but a simple reconnect seems to solve it.
2013-04-23 21:47:51 -07:00
MinRK
05ead0496b delete notebook mapping in shutdown_kernel 2013-04-23 21:47:50 -07:00