Thomas Kluyver
9fd838d624
Fix imports in IPython.html.utils
13 years ago
Thomas Kluyver
79c0712752
Catch failures reading data from terminated subprocesses
13 years ago
Thomas Kluyver
d729dfbbe2
Fix passing extra arguments to Python test controllers
13 years ago
Thomas Kluyver
81660c08ce
Allow running Python tests on one section of the codebase
13 years ago
Thomas Kluyver
bce32ec03b
Fixes for notebook session manager
13 years ago
Thomas Kluyver
f65b3a1495
Use StringIO.StringIO on Python 2.
...
io.StringIO is strict about unicode, StringIO.StringIO isn't.
13 years ago
Thomas Kluyver
51040fb768
Update imports for Python 3
...
2to3 fixer imports (+ manual changes)
13 years ago
Thomas Kluyver
4a14ed7e22
Replace references to unicode and basestring
13 years ago
Thomas Kluyver
d4532983f4
Convert print statements to print function calls
...
libmodernize.fixes.fix_print
13 years ago
Paul Ivanov
4ffe489e72
Merge pull request #4415 from ivanov/more-tooltips
...
More tooltips in the Notebook menu
13 years ago
Paul Ivanov
e608c6d07a
fix: allow JS test to run after shutdown test
...
shutdown notebook test closes casper browser, here we re-instatiate it
after the test
13 years ago
Min RK
d797f8950f
Merge pull request #4450 from ivanov/remove-old-tornado-monkeypatch
...
remove monkey patch for older versions of tornado
13 years ago
Paul Ivanov
f04eca3ddd
remove monkey patch for older versions of tornado
...
Since we now depend on Tornado >= 3.1, this code path is no longer
necessary
13 years ago
Paul Ivanov
1123af8528
make close-and-halt work on new tabs in Chrome
...
this is not possible in Firefox, as new tabs/windows which were *not*
opened via a script ( window.open call ) are not allowed to be closed
via window.close and will yield a message like
--
[11:50:59.691] Scripts may not close windows that were not opened by script. @ http://localhost:8888/static/notebook/js/menubar.js:105
13 years ago
Min RK
4e8bc066e9
Merge pull request #4435 from minrk/tornado-tweaks
...
raise 404 on not found static file
13 years ago
Matthias BUSSONNIER
f7eff4cdb4
recompile css
13 years ago
Matthias BUSSONNIER
88cb5073d5
split notebook style in 2 files,
...
app specific/not app specific
13 years ago
Matthias BUSSONNIER
d2a41e902f
remove more hard coded layout
13 years ago
Min RK
57fa14a2fa
Merge pull request #4442 from Carreau/fix-oir
...
finish object_info_request/object_info rename in tooltip
13 years ago
Matthias BUSSONNIER
a74c36b62a
remove compatibility layer
13 years ago
Min RK
8b58e38990
Merge pull request #4436 from minrk/require-ext
...
allow `require("nbextensions/extname")` to load from IPYTHONDIR/nbextensions
13 years ago
Matthias BUSSONNIER
bdb1c94137
fix and add shim for change introduce by #4195
...
comm merging renamed object_info_request to object_info
13 years ago
Min RK
4f3f1f1ebb
Merge pull request #4437 from minrk/etag
...
don't compute etags in static file handlers
13 years ago
Min RK
c3e6e625a7
Merge pull request #4427 from minrk/checkpoint-on-first-save
...
notebooks should always have one checkpoint
closes #4396
13 years ago
Matthias Bussonnier
5bd89b7376
Merge pull request #4425 from Carreau/fix-js-python
...
Fix impossibility to upload notebooks.
13 years ago
Matthias BUSSONNIER
79f1edc5e9
fix notebook upload
...
pythonnism + PUT instead of POST
13 years ago
MinRK
f8ddcffacb
allow `require("nbextensions/extname")` to load from IPYTHONDIR/nbextensions
13 years ago
MinRK
7ea4db6c48
don't compute etags in static file handlers
...
etags skip cache timing, which we probably don't want. If-Modified-Since is good enough for us.
13 years ago
Min RK
0aaafce4af
Merge pull request #4195 from minrk/widget-msg
...
IPEP 21: widget messages
13 years ago
MinRK
ff744e25cd
raise 404 on not found static file
...
master gives 403 due to empty string being outside of root
13 years ago
Thomas Kluyver
daf15735bd
Merge pull request #4428 from minrk/tornado-3.1
...
bump minimum tornado version to 3.1.0
13 years ago
MinRK
6fa13ebb98
bump minimum tornado version to 3.1.0
...
The no-hidden behavior of the files handler
already requires this, but instead of raising, it just doesn't hide hidden files.
Bumping the minimum version also allows much cleaner static file handler subclasses.
13 years ago
Thomas Kluyver
45faf9a949
Merge commit '37dadeb' (most of PR #4391 )
...
Conflicts:
IPython/testing/iptestcontroller.py
13 years ago
Paul Ivanov
80ac24683f
give travis 10 seconds to start server
13 years ago
Paul Ivanov
357b78171a
fix: JS kernel state should reflect killed state
13 years ago
MinRK
79a7b1e421
fix tornado log propagation
...
in the notebook
13 years ago
Paul Ivanov
26b5a76841
don't use test.begin
...
the PPA we use on Travis CI doesn't have CasperJS 1.1.0-DEV yet, so
we're better off not using it for now.
13 years ago
Paul Ivanov
4993ddd498
make js tests quieter, silence notebook server
13 years ago
Paul Ivanov
217b43cf87
use test.begin to give test group a name
13 years ago
Paul Ivanov
641f157fd9
add test for shutdown notebook
13 years ago
Paul Ivanov
e971d051ed
created a kernel_running method
13 years ago
Paul Ivanov
755565019d
adds test of clicking the play button
13 years ago
Paul Ivanov
baf90fd755
add checks for new cell added using shift-enter
13 years ago
Paul Ivanov
89f2ed95f9
refactor of get_output_cell
13 years ago
Paul Ivanov
047f3d76cc
minor shortening
13 years ago
Paul Ivanov
1703b289c9
test keyboard interrupt shortcuts
13 years ago
Paul Ivanov
19a20a3c70
add Ctrl-M keyboard shortcut
13 years ago
Paul Ivanov
605573e110
use wait_for_output util function
13 years ago
Paul Ivanov
df2118297b
wait_for_output utility function
13 years ago
Paul Ivanov
65810a49e4
utility functions + tests for shift- & ctrl-enter
13 years ago
Paul Ivanov
34c9ad36a2
repeat test with keyboard shortcut
13 years ago
Paul Ivanov
23a7eb325d
make sure kernel started running
13 years ago
Paul Ivanov
fe60519410
test kernel interrupt
13 years ago
Paul Ivanov
e8fba5dd6d
try to shutdown at the end of every notebook run
...
this line causes noise in the test suite, but if we just ignore it,
we'll never get to the bottom of it. It seems to only happen when
running 'iptest js', and *not* when running the 'casperjs test' command
directly, with a notebookserver that was launched manually.
13 years ago
Paul Ivanov
7546e57db4
make tests work on TravisCI
13 years ago
Paul Ivanov
7e7ac7ec9e
don't shutdown kernel after every test
13 years ago
Paul Ivanov
ebf1320e64
use dashboard to simulate clicking new notebook
13 years ago
Paul Ivanov
c956f28894
make confusing code snippet more readable
13 years ago
Paul Ivanov
a093b4b8ff
use new press_up and press_down utils functions
13 years ago
Paul Ivanov
c68eaca621
added a shorthand way to trigger keyboard events
...
as suggested by @ellisonbg in #4285
13 years ago
Thomas Kluyver
fc639f3d25
Separate out machinery for running JS tests
13 years ago
Thomas Kluyver
f8a36e785d
Use Python 3 compatible syntax in tests
13 years ago
Paul Ivanov
6b2692aa4a
eliminate hardcoded wait, now wait on outputs
...
Note: this test still sometimes fails, though I don't understand why.
Increasing the wait time to 30 seconds does not help, which leads me to
believe that there's some race condition, or that we're genuinely
dropping outputs sometimes (saved notebooks on these timeouts *do*
contain an In[] number, but don't have any outputs attached). @ellisonbg
and @minrk might now what's going on with that.
To run just this test, fire up a notebook server on port 8888 and run:
while true; do casperjs test --includes=util.js test_cases/execute_code_cell.js ; done
13 years ago
Paul Ivanov
f2e0315152
pep8 style function names
13 years ago
Paul Ivanov
0ea7d1e394
more informative message on server timeout
13 years ago
Paul Ivanov
3725218069
updated js tests README, --port= now optional
13 years ago
Paul Ivanov
5fbfc30a08
quieter notebook server output for js test suite
13 years ago
Paul Ivanov
3fdbeb5cae
use a temporary directory for js tests
13 years ago
Paul Ivanov
c6c5066162
don't try to delete notebooks
...
this method wasn't currently working, and though we should put a working
method there as a utility, it isn't strictly necessary, since the whole
directory will be deleted
13 years ago
Paul Ivanov
49770da5ea
--no-browser flag to js tests notebook server
13 years ago
Paul Ivanov
5f4c695aab
start and use notebook server for js test suite
13 years ago
Paul Ivanov
aaae8fd200
JSController working, `iptest js` runs casperjs
13 years ago
Paul Ivanov
66972d69bf
added javascript section with casperjs requirement
13 years ago
Paul Ivanov
8338f9ae90
simplify prepare_controllers logic
13 years ago
Paul Ivanov
641fdc77a7
include the # of active kernels in server info
13 years ago
Paul Ivanov
031811225e
consistently get the first cell
13 years ago
Paul Ivanov
b75cd967d7
less convoluted way of grabbing output
13 years ago
Paul Ivanov
6d7758271e
make casperjs test suite pass again
13 years ago
Paul Ivanov
928e846ea8
jstest moved to new place, closes #3125
13 years ago
David Wyde
9f4e9345a3
Add CasperJS tests for `merge_cell_above()` and `merge_cell_below()`.
13 years ago
David Wyde
dead20b1bd
Use existing IPython method to kill kernels.
13 years ago
David Wyde
b566c71dfd
Add tests for Markdown toolbar and menubar entries.
13 years ago
David Wyde
95873c65da
Wrap CasperJS tests in a helper function to reduce boilerplate.
13 years ago
David Wyde
fce51827e0
Use keycode constants from jQuery UI and improve message in test.
13 years ago
David Wyde
6e7cd60cb5
Add a test to demonstrate errors when up/down arrow keys are
...
pressed in an empty notebook.
13 years ago
David Wyde
7f9aecc2d9
Add a README for CasperJS tests.
13 years ago
David Wyde
f5000f416e
Add CasperJS utility functions, and tests for code and
...
Markdown cell execution.
Code cell test is based on https://gist.github.com/ellisonbg/3329929 .
13 years ago
Thomas Kluyver
7570c8b00f
Merge pull request #4426 from minrk/kernel-cwd
...
set kernel cwd to notebook's directory
13 years ago
MinRK
6bc2c65c83
notebooks should always have one checkpoint
...
closes #4396
13 years ago
MinRK
3a4d719033
fix checkpoint filename
13 years ago
Thomas Kluyver
ab357f190b
Merge pull request #4393 from takluyver/tests-subproc-stream-capture
...
Capture output from subprocs during test, and display on failure
13 years ago
MinRK
922f458d6a
set kernel cwd to notebook's directory
...
closes #4424
13 years ago
Matthias BUSSONNIER
d90429366b
Remove tooltip on tab logic
13 years ago
MinRK
4a3978ec28
don't expose comm_id arg via new_comm
13 years ago
MinRK
b666345633
allow callbacks on status messages
13 years ago
MinRK
34efd17408
catch errors in comm callbacks
13 years ago
MinRK
938dc589dd
Add CommManager.new_comm
...
Javascript-side version for creating and connecting Comms in one call
Without a `get_ipython()`-like global handle,
Comm constructor can't do the same magic as the IPython one.
13 years ago
MinRK
0a89edc641
log exceptions in Comm handlers
13 years ago
MinRK
8bcf95404d
add unregister_target to CommManagers
13 years ago
MinRK
90f67d3bbe
add CodeCell.get_callbacks
...
for reusing default execute callbacks
13 years ago