Commit Graph

1375 Commits

Author SHA1 Message Date
Bradley M. Froehle
4bf8f834ca Work around lack of os.kill in win32.
Fixes iptest brokenness caused by #2148.
2012-07-25 15:04:54 -07:00
Matthias BUSSONNIER
8d6a9e0a67 separate kernel notification from save/load notification 2012-07-25 09:08:08 +02:00
Fernando Perez
b3fcc75530 Merge pull request #2148 from bfroehle/no_more_os_system
win32 iptest: Use subprocess.Popen() instead of os.system().

The call to `os.system` in `iptest` prevents us from easily setting `$IPYTHONDIR` to a temporary directory.  In theory we should be able to use `subprocess.Popen` instead of `os.system` in Windows. This would unify the code structure and make it easy to pass in a different environment.

Note that Python < 2.7 does not have `os.kill`.  I've attempted to work around this by using `ctypes` to kill any living processes.
2012-07-24 21:40:32 -07:00
Matthias BUSSONNIER
a40b2d6b61 prototype sticky notification 2012-07-24 22:53:54 +02:00
Matthias BUSSONNIER
aedb1a809b use jquery-ui classes 2012-07-24 21:59:21 +02:00
MinRK
4ee5129dad log local mathjax path 2012-07-23 11:59:48 -07:00
MinRK
aa9f5d9e80 add missing methods in FindFileHandler for tornado < 2.2.0 compat 2012-07-23 11:58:28 -07:00
Matthias BUSSONNIER
e5ede75fdb trap undefined timout 2012-07-22 04:20:17 +02:00
Matthias BUSSONNIER
d6ebf4d2b1 beginning notification area 2012-07-22 04:11:53 +02:00
Min RK
8373a99eb8 Merge pull request #2183 from jasongrout/trigger-kernel
Include the kernel object in the event object passed to kernel events
2012-07-21 09:50:15 -07:00
Jason Grout
e9324378e8 Include the kernel object in the event object passed to kernel events 2012-07-21 07:08:49 -05:00
Min RK
d6c3b3f814 Merge pull request #2182 from minrk/fix2159
handle undefined param in notebooklist

PR #2159 introduced a bug preventing the notebook list from drawing
2012-07-20 23:40:23 -07:00
MinRK
d77e9a4eba handle undefined param in notebooklist
PR #2159 introduced a bug preventing the notebook list from drawing
2012-07-21 01:38:47 -05:00
Min RK
8b34dfc405 Merge pull request #2051 from jasongrout/stream-metadata
Add a metadata attribute to messages

subheader is removed in favor of the new metadata dict,
reducing degeneracy.
2012-07-20 22:16:50 -07:00
MinRK
25aa3003ac add metadata to javascript msg spec implementation 2012-07-20 22:16:12 -05:00
Jason Grout
7095b9eb87 Make top-level metadata dictionary not optional. 2012-07-20 22:16:08 -05:00
Jason Grout
4ad79b41f6 Set default metadata for javascript callback 2012-07-20 22:14:33 -05:00
Jason Grout
9436f33035 Add an optional metadata attribute to all messages and add a session-level default metadata attribute. 2012-07-20 22:14:32 -05:00
Jason Grout
009e5583cf Pass the header of output and clear_output messages to javascript callbacks 2012-07-20 22:14:32 -05:00
Bussonnier Matthias
260a107d80 Merge pull request #2159 from Carreau/dashbord_refresh_on_error
show message on notebook list if server is unreachable
2012-07-20 16:46:02 -07:00
Matthias BUSSONNIER
cf2cfa45e1 pep8 2012-07-20 18:39:07 -05:00
MinRK
3c6c38289a handle single static path in FileFindHandler 2012-07-20 15:06:48 -05:00
Bussonnier Matthias
70ffbd609b Merge pull request #2090 from v923z/master
Notebook, Alt-enter : execute cell, append codecell below.
2012-07-20 10:32:10 -07:00
MinRK
2891a0a8ca add empty custom.js/css
With FileFindHandler, these will be useful for small user overrides of css/js.
2012-07-20 12:04:39 -05:00
MinRK
8aa6fb3fc3 fix missing quotation mark in notebook.html 2012-07-20 12:02:05 -05:00
MinRK
96158cff3f use FileFindHandler in NotebookApp
adds NotebookApp.extra_static_paths configurable for extending the search path.

The default is to include profile/static.
2012-07-20 12:01:49 -05:00
MinRK
a627f3d955 add FileFindHandler for serving static files from a search path 2012-07-20 11:59:52 -05:00
v923z
eaf53eeb9a Replaced .toJSON().input by .get_text() 2012-07-20 16:07:23 +03:00
v923z
0e4dbb2880 Added checking for emptiness of cell below. 2012-07-20 15:03:33 +03:00
v923z
eb47f0eb8d Added some comments to the Alt-Enter code part, and also added checking whether a new code cell is really needed. 2012-07-19 22:35:38 +03:00
Bussonnier Matthias
3730b710e6 Merge pull request #2158 from Carreau/tuple_params
Remove tuple auto unpack in function definition 

This is for 2to3 compatibility., and also deactivate the application of 
the corresponding 2to3 fix when using python3 and setup.py.
2012-07-18 05:43:06 -07:00
Thomas Kluyver
70f8062ce8 Merge pull request #2089 from bfroehle/unittest_deprecation_warnings
Fix unittest DeprecationWarnings
2012-07-18 02:31:52 -07:00
Matthias BUSSONNIER
268fdd80c3 remove tuple_params fix from 2to3 in setup.py 2012-07-17 23:48:20 -05:00
Matthias BUSSONNIER
23cf94023d show message on notebook list if server is unreachable
usefull when :
server goes down, you don't notice it on dashboard

restart on https, cookies is unvalid, autoreload don't work
2012-07-17 23:21:07 -05:00
Bradley M. Froehle
cfc86faefb s/nt.assert_equals/nt.assert_equal/ 2012-07-17 08:30:53 -07:00
Bradley M. Froehle
05a30fa6d4 s/assertEquals/assertEqual/ 2012-07-17 08:30:53 -07:00
Thomas Kluyver
aaf911c5e5 Merge pull request #2140 from bfroehle/2to3_has_key
2to3: Apply `has_key` fixer.
2012-07-17 04:58:13 -07:00
Bradley M. Froehle
71b4bf797c win32 iptest: Use subprocess.Popen() instead of os.system(). 2012-07-16 17:29:02 -07:00
Bradley M. Froehle
9ff624471d Skip has_key when running 2to3. 2012-07-15 09:55:56 -07:00
Thomas Kluyver
0c157dd01c Merge pull request #2134 from bfroehle/2to3_next
Apply 2to3 `next` fix.
2012-07-15 02:57:32 -07:00
Bradley M. Froehle
9dd190f134 Apply 2to3 next fix.
Manually set `next = __next__` for Python 2 support.
2012-07-13 15:59:26 -07:00
Bussonnier Matthias
0b44186d76 Merge pull request #2100 from Carreau/2to3fixes
python 2 and 3 compatibility without 2to3

apply some fixes :
- apply (deactivated in setup.py now)
- repr  (deactivated in setup.py now)
- print (only in modules with print >>)
- raise (partially) 

don't touch deathrow and quarantine.
2012-07-13 01:07:56 -07:00
Bussonnier Matthias
f38cf983c5 Merge pull request #2128 from Carreau/fixes-2120
open notebook copy in different tabs
2012-07-12 11:31:37 -07:00
Bussonnier Matthias
22e757f91d Merge pull request #2073 from Carreau/fixes-1997
Allows both password and prefix for notebook at the same time.
2012-07-12 11:28:33 -07:00
Matthias BUSSONNIER
ca65de9fa2 open notebook copy in different tabs
returning false to allow modifier+click,
otherwise open 2 tabs at once.
2012-07-12 18:19:13 +02:00
Matthias BUSSONNIER
cc663005e4 dont use string as dict key, better redability 2012-07-12 16:37:21 +02:00
Bussonnier Matthias
4ec828c3db Merge pull request #1993 from Carreau/printview
Update print-view css, and link the print css when trying to print a notebook without going through the print view.
2012-07-12 06:18:25 -07:00
Matthias BUSSONNIER
53d2a34336 correcty inherign the main toolbar 2012-07-11 16:30:26 +02:00
Matthias BUSSONNIER
ac04f1f437 load maintoolbar.js 2012-07-11 16:24:25 +02:00
Matthias BUSSONNIER
04d7e96aa8 add maintoolbar file 2012-07-11 16:20:22 +02:00