Paul Ivanov
2ab51dc1a5
yet another JS race condition fix
...
this should greatly reduce the number of timeouts seen in the JS tests
12 years ago
Paul Ivanov
6eb3170963
Merge pull request #4410 from ivanov/close-new-tabs-chrome
...
make close-and-halt work on new tabs in Chrome
12 years ago
Jonathan Frederic
1a5e26dd5a
Removed left over log statements
12 years ago
Jonathan Frederic
96f5cc942b
Fix blank space added by included Javascript on page refresh or notebook load
12 years ago
Thomas Kluyver
557fb3f4ae
Python 3 compatibility for os.getcwdu()
12 years ago
Paul Ivanov
c4b9e69793
Merge pull request #4451 from ivanov/shutdown-js
...
fix: allow JS test to run after shutdown test
12 years ago
Pablo de Oliveira
8253998833
Set both height and width using css
12 years ago
Pablo de Oliveira
fcbd398ad2
Preserve layout for large isolated objects
12 years ago
Paul Ivanov
4901f5fc16
don't delete casper instance on shutdown test
...
a lunch conversation with @minrk and @takluyver lead me to just make a
popup and have it be closed, instead of having to reorder the test suite
so that this test always runs last. Now it doesn't matter what order the
test suite runs in, and gives us a pattern for testing window closing
behavior should we need it elsewhere.
12 years ago
Pablo de Oliveira
b1eba452c9
Fix typo.
12 years ago
Pablo de Oliveira
bbfcbf40eb
Add casperjs test for isolated SVGs
12 years ago
Pablo de Oliveira
c72d4fead0
Notebook isolated content: fix firefox extra-space issue
...
In Firefox, if the iframe initial height is set to 0, the reported
scrollHeight is too large. Workaround: set the initial height to 1.
12 years ago
Pablo de Oliveira
a8e39d6acc
Support isolated metadata tag for any content
...
Any content whose metadata contains an `isolated` tag will be isolated
from the rest of the document.
The current implementation wraps isolated content into an iframe.
12 years ago
Pablo de Oliveira
86dce97804
SVG: scoped is passed as metadata
...
Instead of using a svg class to pass scope information
use notebook metadata.
Suggested by Matthias Bussonnier
12 years ago
Pablo de Oliveira
4c49abd2ae
Fix style and typo
12 years ago
Pablo de Oliveira
3e0a69ba68
SVG scoping must be explicitly enabled by the user
...
SVG scoping is disabled by default, to enable it the user
must call the core.display.SVG constructor with the scoped=True
keyword parameter.
12 years ago
Pablo de Oliveira
f152996f11
outputarea.js: Wrap inline SVGs inside an iframe
...
When multiple inline SVGs are included in a single document,
they share the same parse tree. Therefore, style collisions and
use id collisions can occur and upset the rendering.
This patch wraps each SVG inside an individual iframe, ensuring
that SVG's declarations do not collide.
(The SVG representation is kept as XML and not converted to a binary
format, so I do not think this approach precludes the use of d3.js)
Tested on:
* Chrome Version 29.0.1547.57 Debian 7.1 (217859)
* Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130806 Firefox/17.0 Iceweasel/17.0.8
Closes #1866
12 years ago
Thomas Kluyver
93ee2d7173
Make sessions REST API test more robust.
...
Was seeing failures on Windows because it failed to delete the folder.
12 years ago
Thomas Kluyver
0e9a7c0874
Remove unused imports in IPython.html.notebook.handlers
12 years ago
Thomas Kluyver
9fd838d624
Fix imports in IPython.html.utils
12 years ago
Thomas Kluyver
bce32ec03b
Fixes for notebook session manager
12 years ago
Thomas Kluyver
51040fb768
Update imports for Python 3
...
2to3 fixer imports (+ manual changes)
12 years ago
Thomas Kluyver
4a14ed7e22
Replace references to unicode and basestring
12 years ago
Thomas Kluyver
d4532983f4
Convert print statements to print function calls
...
libmodernize.fixes.fix_print
12 years ago
Paul Ivanov
4ffe489e72
Merge pull request #4415 from ivanov/more-tooltips
...
More tooltips in the Notebook menu
12 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
12 years ago
Min RK
d797f8950f
Merge pull request #4450 from ivanov/remove-old-tornado-monkeypatch
...
remove monkey patch for older versions of tornado
12 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
12 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
12 years ago
Min RK
4e8bc066e9
Merge pull request #4435 from minrk/tornado-tweaks
...
raise 404 on not found static file
12 years ago
Matthias BUSSONNIER
f7eff4cdb4
recompile css
12 years ago
Matthias BUSSONNIER
88cb5073d5
split notebook style in 2 files,
...
app specific/not app specific
12 years ago
Matthias BUSSONNIER
d2a41e902f
remove more hard coded layout
12 years ago
Min RK
57fa14a2fa
Merge pull request #4442 from Carreau/fix-oir
...
finish object_info_request/object_info rename in tooltip
12 years ago
Matthias BUSSONNIER
a74c36b62a
remove compatibility layer
12 years ago
Min RK
8b58e38990
Merge pull request #4436 from minrk/require-ext
...
allow `require("nbextensions/extname")` to load from IPYTHONDIR/nbextensions
12 years ago
Matthias BUSSONNIER
bdb1c94137
fix and add shim for change introduce by #4195
...
comm merging renamed object_info_request to object_info
12 years ago
Min RK
4f3f1f1ebb
Merge pull request #4437 from minrk/etag
...
don't compute etags in static file handlers
12 years ago
Min RK
c3e6e625a7
Merge pull request #4427 from minrk/checkpoint-on-first-save
...
notebooks should always have one checkpoint
closes #4396
12 years ago
Matthias Bussonnier
5bd89b7376
Merge pull request #4425 from Carreau/fix-js-python
...
Fix impossibility to upload notebooks.
12 years ago
Matthias BUSSONNIER
79f1edc5e9
fix notebook upload
...
pythonnism + PUT instead of POST
12 years ago
MinRK
f8ddcffacb
allow `require("nbextensions/extname")` to load from IPYTHONDIR/nbextensions
12 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.
12 years ago
Min RK
0aaafce4af
Merge pull request #4195 from minrk/widget-msg
...
IPEP 21: widget messages
12 years ago
MinRK
ff744e25cd
raise 404 on not found static file
...
master gives 403 due to empty string being outside of root
12 years ago
Thomas Kluyver
daf15735bd
Merge pull request #4428 from minrk/tornado-3.1
...
bump minimum tornado version to 3.1.0
12 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.
12 years ago
Paul Ivanov
80ac24683f
give travis 10 seconds to start server
12 years ago
Paul Ivanov
357b78171a
fix: JS kernel state should reflect killed state
12 years ago
MinRK
79a7b1e421
fix tornado log propagation
...
in the notebook
12 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.
12 years ago
Paul Ivanov
217b43cf87
use test.begin to give test group a name
12 years ago
Paul Ivanov
641f157fd9
add test for shutdown notebook
12 years ago
Paul Ivanov
e971d051ed
created a kernel_running method
12 years ago
Paul Ivanov
755565019d
adds test of clicking the play button
12 years ago
Paul Ivanov
baf90fd755
add checks for new cell added using shift-enter
12 years ago
Paul Ivanov
89f2ed95f9
refactor of get_output_cell
12 years ago
Paul Ivanov
047f3d76cc
minor shortening
12 years ago
Paul Ivanov
1703b289c9
test keyboard interrupt shortcuts
12 years ago
Paul Ivanov
19a20a3c70
add Ctrl-M keyboard shortcut
12 years ago
Paul Ivanov
605573e110
use wait_for_output util function
12 years ago
Paul Ivanov
df2118297b
wait_for_output utility function
12 years ago
Paul Ivanov
65810a49e4
utility functions + tests for shift- & ctrl-enter
12 years ago
Paul Ivanov
34c9ad36a2
repeat test with keyboard shortcut
12 years ago
Paul Ivanov
23a7eb325d
make sure kernel started running
12 years ago
Paul Ivanov
fe60519410
test kernel interrupt
12 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.
12 years ago
Paul Ivanov
7e7ac7ec9e
don't shutdown kernel after every test
12 years ago
Paul Ivanov
ebf1320e64
use dashboard to simulate clicking new notebook
12 years ago
Paul Ivanov
c956f28894
make confusing code snippet more readable
12 years ago
Paul Ivanov
a093b4b8ff
use new press_up and press_down utils functions
12 years ago
Paul Ivanov
c68eaca621
added a shorthand way to trigger keyboard events
...
as suggested by @ellisonbg in #4285
12 years ago
Thomas Kluyver
f8a36e785d
Use Python 3 compatible syntax in tests
12 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
12 years ago
Paul Ivanov
f2e0315152
pep8 style function names
12 years ago
Paul Ivanov
0ea7d1e394
more informative message on server timeout
12 years ago
Paul Ivanov
3725218069
updated js tests README, --port= now optional
12 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
12 years ago
Paul Ivanov
5f4c695aab
start and use notebook server for js test suite
12 years ago
Paul Ivanov
641fdc77a7
include the # of active kernels in server info
12 years ago
Paul Ivanov
031811225e
consistently get the first cell
12 years ago
Paul Ivanov
b75cd967d7
less convoluted way of grabbing output
12 years ago
Paul Ivanov
6d7758271e
make casperjs test suite pass again
12 years ago
Paul Ivanov
928e846ea8
jstest moved to new place, closes #3125
12 years ago
MinRK
6bc2c65c83
notebooks should always have one checkpoint
...
closes #4396
12 years ago
MinRK
3a4d719033
fix checkpoint filename
12 years ago
MinRK
922f458d6a
set kernel cwd to notebook's directory
...
closes #4424
12 years ago
Matthias BUSSONNIER
d90429366b
Remove tooltip on tab logic
12 years ago
MinRK
4a3978ec28
don't expose comm_id arg via new_comm
12 years ago
MinRK
b666345633
allow callbacks on status messages
12 years ago
MinRK
34efd17408
catch errors in comm callbacks
12 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.
12 years ago
MinRK
0a89edc641
log exceptions in Comm handlers
12 years ago
MinRK
8bcf95404d
add unregister_target to CommManagers
12 years ago
MinRK
90f67d3bbe
add CodeCell.get_callbacks
...
for reusing default execute callbacks
12 years ago
MinRK
9e198d2bd6
attach comm_manager to kernel
12 years ago
MinRK
5c83cd3e52
move comm.js to kernel service
12 years ago
MinRK
04adce96af
add message metadata to comm and kernel.send_shell_message
12 years ago
MinRK
99680e21bd
move comm.js to base
12 years ago
MinRK
4fdc4bb3fc
get clear_output callback properly
12 years ago
MinRK
76994d2ff8
update callback structure in js commands
12 years ago
MinRK
aa388570d3
jshint on codecell
12 years ago
MinRK
f7e6435256
only pass shell.reply callback to oinfo / complete
...
These should not have side effects, so no need to expose full callback structure.
Also, object_info method shouldn't have `_request` in its name.
12 years ago
MinRK
d99e25f245
refactor js callbacks
...
all callbacks get the whole message
12 years ago
MinRK
9206d1e87f
add utils.always_new
...
wrapper allows passing constructors as callbacks, where `new` is required.
12 years ago
MinRK
111fccc8ab
open is not an event
...
target callback receives comm and open message, not just comm.
12 years ago
MinRK
aa0387a647
s/target/target_name
12 years ago
MinRK
f833b1ca03
hook up output for comm messages
12 years ago
MinRK
3d3c3fd504
COMM: mirror Python callback API in Javascript
12 years ago
MinRK
15819e8535
pass whole message to Comm handlers
12 years ago
MinRK
3665cc241f
rename widget to comm
12 years ago
MinRK
14fcdab73b
make js / Python widgets symmetrical
...
don't enforce creation on Kernel side
also removed weak refs - premature optimization,
we can think about this later.
12 years ago
MinRK
230a2261e8
fix js/Python WidgetManager symmetry
...
remove some log statements
12 years ago
MinRK
6643cffa23
add javascript-side widgets
12 years ago
MinRK
8199909e62
Improvements to kernel.js
...
- dispatch iopub handlers by msg_type
- add Kernel.send_shell_message public API
- use strict (and related fixes)
12 years ago
Min RK
bc0dc279f1
Merge pull request #4303 from ipython/multidir
...
Add multidirectory support for the Notebook.
Major change to URL schemes in the notebook server,
documented in [IPEP 16](https://github.com/ipython/ipython/wiki/IPEP-16%3A-Notebook-multi-directory-dashboard-and-URL-mapping ).
12 years ago
MinRK
ede0297874
tweak stat walk in forbid_hidden
12 years ago
MinRK
40cce4d7e3
s/os.path.sep/os.sep/
12 years ago
MinRK
112a694c5c
py3k bytes, for crying out loud
12 years ago
MinRK
2b54e36ab7
send ignored output to devnull
...
rather than PIPE, since Windows pipes can fill up.
12 years ago
MinRK
dbfea55e8a
stat has no st_flags on Windows (maybe elsewhere?)
12 years ago
MinRK
dfb538d881
Windows testing fixes
12 years ago
MinRK
1f90f4d7bb
test /files/ gives 403 on hidden files
12 years ago
MinRK
2fcc7fe97f
forbid serving hidden files from `/files`
12 years ago
MinRK
a45e997176
don't warn when open_browser and not file_to_run
12 years ago
Paul Ivanov
8fb1d7391c
added some tooltips for the File menu
12 years ago
Paul Ivanov
474bd780ce
tooltips for View and Insert menus
12 years ago
Paul Ivanov
0f9a478abd
Kernel and Help menu tooltips
12 years ago
Paul Ivanov
69d06c02d7
add more tooltips for Cell menu
12 years ago
Paul Ivanov
bd22e4ae90
added descriptions which were deleted from JS
12 years ago
Paul Ivanov
b117f59b82
javascript is no place to start adding title tags
12 years ago
MinRK
18022a7db8
don't relay notebook dir to kernel from command-line
12 years ago
Paul Ivanov
8b26933af5
Merge pull request #4378 from minrk/split-below
...
split adds new cell above, rather than below
12 years ago
Paul Ivanov
a2d731ff39
fix 'close and halt' in notebook File menu
12 years ago
MinRK
bf58dddf26
single warning message for bad startup notebook
12 years ago
MinRK
24174f31d9
use itertools.count for incrementing notebook filename
12 years ago
MinRK
cc08837111
fix created timestamp in notebook model
12 years ago
MinRK
f894dbe664
test upload of v2 notebooks
12 years ago
MinRK
50665831bd
update copy API in js
12 years ago
MinRK
cf0218e2d1
don't use jsonapi in test_notebook_api
12 years ago
MinRK
66ccce69c6
copy_from in json, not in url param
12 years ago
MinRK
ef0d065712
test nbmanager.copy_notebook
12 years ago
MinRK
c8ce1e7c7a
url_escape redirects
12 years ago
MinRK
aea1bbde6a
s/session_id/id
12 years ago
MinRK
0558ec4ce0
Cells shouldn't know about Sessions
12 years ago
MinRK
7ea311ad64
escape URLs in Location headers
12 years ago
MinRK
99282f9e6b
urllib.quote/unquote must be str on Python 2
12 years ago
MinRK
06d9b99141
update notebook api tests
...
with creation URL changes
also use unicode as the default name in tests,
to increase likelihood of catching unicode bugs.
12 years ago
MinRK
f11caf25e7
update notebook creation handlers
...
- only POST to directories (notebook picks name)
- only PUT to full paths
- PUT and POST should be equivalent aside from
who picks the notebook name.
12 years ago
MinRK
60d12e4209
allow specifying destination in copy_notebook
12 years ago
MinRK
d1a36fe4c0
use 'id' for checkpoint ID key
...
rather than redundant checkpoint.checkpoint_id
12 years ago
MinRK
5a60141bed
use splitext in notebook_list
...
fixes case where notebooks with '.' in name were misrendered
12 years ago
MinRK
11013e648d
add utils.splitext to js
...
mimic Python os.path.splitext
12 years ago
MinRK
5ca1ad666d
add missing cell.session in tooltip.js
12 years ago
MinRK
714afa7b0f
fix initial-file opening in the notebook
12 years ago
MinRK
d739a72638
strip '/' from paths in template-render handlers
12 years ago
Brian E. Granger
36aa39e3b7
Improving tests and setting of Location header.
12 years ago
Brian E. Granger
9c42ca8a72
Fully removing .py file upload.
...
In the future all uploads should just use the contents web service
and we should support any type of file.
12 years ago
Brian E. Granger
51fc769edd
Handle notebook downloads through the /files URL.
12 years ago
Brian E. Granger
59901ce88c
Adding docstring to NotebookHandler.get.
12 years ago
Thomas Kluyver
6017f5d0ef
Specify encoding for loading and saving notebooks.
12 years ago
Thomas Kluyver
05e85588cf
Add some unicode testing for saving notebooks
12 years ago
Thomas Kluyver
cbc141c95c
Fixes for notebook checkpoint APIs
12 years ago
Thomas Kluyver
3f46a05a14
Test notebook checkpoint APIs
12 years ago
MinRK
4a12890d65
disable download-as-pt
...
since it doesn't work. Adds a note about nbconvert needed to bring it back.
12 years ago
Thomas Kluyver
d089f7749f
Use assertEqual, not deprecated assertEquals
12 years ago
Thomas Kluyver
836ad5f388
Add tests for interrupting & restarting kernel
...
These are in an existing test method, as starting and stopping kernels
for individual tests is expensive.
12 years ago
Thomas Kluyver
06fa301908
Refactor tests for kernels REST API
12 years ago
MinRK
821514bd72
cleanup weird 404
12 years ago
MinRK
fc4fb92580
review pass on multidir js
12 years ago
MinRK
e16a5807c7
fixup bad rebase
12 years ago
MinRK
8b9bb04d12
review pass on Sessions API
12 years ago
Thomas Kluyver
b1a0f2e8cc
404 on attempt to list notebooks in nonexistant directory
12 years ago
Thomas Kluyver
18f88d020f
Add failing test for listing nonexistant directory
12 years ago
Thomas Kluyver
99969474e0
Fix notebook manager test
12 years ago
Thomas Kluyver
c18aaefbde
Fix sessionmanager test
12 years ago
Thomas Kluyver
e240f21ea1
Clean up sessions code from static analysis
12 years ago
Thomas Kluyver
693cc97905
Fix some HTTP status codes in sessions API
12 years ago
Thomas Kluyver
b3d2698c11
Fix session API tests
12 years ago
Thomas Kluyver
a02bd3d5e4
Improve Session REST API tests
12 years ago
Thomas Kluyver
a6a7255454
Fix some notebook model tests
12 years ago
MinRK
acb4245035
unicode normalization in test_notebooks_api
12 years ago
Thomas Kluyver
9f4a4ab3f8
Check Location header from renaming notebook
12 years ago
Thomas Kluyver
9144e8e57b
Fix check of notebook path
12 years ago
Thomas Kluyver
eb9a55ed6b
Add test for and fix REST save with rename
12 years ago
Thomas Kluyver
b9310d0e05
Add test for copying notebook through REST API
12 years ago
Thomas Kluyver
7725025d52
Add test for saving notebook via REST API
12 years ago
Thomas Kluyver
85d3c39b5a
Add test for REST API uploading notebook
12 years ago
Thomas Kluyver
9d9adb1186
Improve tests for notebook REST API
12 years ago
MinRK
6c88abe1d6
always set location on PATCH
...
don't redirect
12 years ago
MinRK
ac5434efba
properly hook up tornado loggers
12 years ago
MinRK
5593526108
don't let empty strings introduce extra slashes in url_path_join
12 years ago
MinRK
dc65b33d14
simplify handler patterns
...
PATH pattern will now sometimes include leading slash,
but that's okay because nbmanager will strip them.
fewer redirect patterns needed
12 years ago
MinRK
a31cfdc8a8
ensure 'path' never has leading or trailing slash in nbmanager
...
Don't trust API callers to always get this right.
12 years ago
MinRK
83114a11d8
add TrailingSlashHandler
...
redirects all GET requests with a trailing slash
12 years ago
MinRK
a7f297f8f3
save before download-as
...
uses `async : false`
closes #852
download-as-py still unavailable.
12 years ago
MinRK
8b94ee2b47
use `async : false` to avoid pop-up blocker on New / Copy notebook
12 years ago
MinRK
b33ffa7068
update upload and copy
...
adds 'notebook.ipynb/copy' url handler
because we were putting too many things in a single POST handler.
12 years ago
MinRK
75e14424c6
cleanup old, unused `/notebooks/foo` API methods
...
these have moved to `/api/notebooks`
12 years ago
MinRK
4e12521082
fix dashboard upload
12 years ago
MinRK
c21ea96476
log exceptions parsing JSON
12 years ago
MinRK
5b1a648fc8
move os_path to FileNBMan
...
doesn't belong in base NotebookManager
12 years ago
MinRK
d1e0aded7d
mixup notebook_list
12 years ago
MinRK
fe59217989
move url_[un]escape to utils from nbm
12 years ago
MinRK
16e8d0ff43
adjust definition of 'path' in notebooks
...
never includes leading or trailing '/'
12 years ago
MinRK
e46412e30f
fix `--notebook-dir` configurable when there is no trailing slash
12 years ago
MinRK
cded90efe3
update json_errors decorator
...
separate handling of HTTPError and unhanded exceptions
12 years ago
MinRK
141d088a51
logo link to current tree level
...
rather than top level
12 years ago
MinRK
40f577b538
add utils.url_path_join
...
javascript equivalent of Python-side function.
12 years ago
MinRK
dd93a2211a
add utils.js to tree template
12 years ago
MinRK
c79dcc8e73
quote data attributes
...
prevents errors when these are empty strings
12 years ago
Zachary Sailer
da58c8c470
Fixed session js ajax request.
...
Session was not creating a kernel object on the client side,
after the server created successfully created a session.
12 years ago
Zachary Sailer
d3e456d9a1
add tests to notebooks api
...
- check for correct status codes
- check headers location
- fix COPY api
12 years ago
Zachary Sailer
9e0beba86f
adding to test_kernels_api.py
...
- Check all HTTP status code responses for requests
- Test invalid kernel IDs
- Check 'location' key in POST request to kernels
12 years ago
Zachary Sailer
c26700cd3a
changes after session manager code review
12 years ago
Zachary Sailer
7aaaab0668
fixed notebook rename after nbmanager refactor
12 years ago
MinRK
14fd50f80b
Simplify Tree handlers
...
- 404 on missing path
- only need one handler for each of redirect and dashboard,
don't need duplicates.
- project property on Handlers is unclear
12 years ago
MinRK
ed66b8b8fe
add path2url and url2path to html.utils
12 years ago
Zachary Sailer
2a946c62ab
added tests to nbmanager for url encode/decode
12 years ago
Zachary Sailer
97bc426bb7
add error catching to kernel manager
...
also, adding further tests to kernel manager
12 years ago
Brian E. Granger
c0bc0410ce
Review and refactoring of notebooks web service.
12 years ago
MinRK
5568cd5db0
ensure test_no_kernels runs first
...
since it expects a clean notebook server.
12 years ago
MinRK
b0468580f7
don't start new notebook server for each test *method*
...
it takes much too long.
This change starts a new notebook server for each test class.
Even that is probably too much, but the module organization makes it troublesome
to start a single notebook server for all services tests.
12 years ago
Zachary Sailer
27680dacb2
Code review changes.
...
Fixed handler issues and api tests from code review
from @minrk and @carreau.
12 years ago
Brian E. Granger
2d6f4628c4
Adding JSON error handling and fixing location headers.
12 years ago
Zachary Sailer
04c6a3cfac
refactoring of nbmanager and filenbmanager
...
major clean up of the two managers. We make sure to follow
the standard models described in IPEP 16
12 years ago
Zachary Sailer
050a3098a8
review fixes on tests, add extra kernel api test
12 years ago
Zachary Sailer
e9ac1c2d37
add tests for session api
12 years ago
Zachary Sailer
8ce586a241
move notebooks api tests into notebooks/tests
12 years ago
Paul Ivanov
f517d44d4b
removing contents changes from this PR
12 years ago
Zachary Sailer
95b505d602
Added notebooks API tests.
12 years ago
Zachary Sailer
5f1b7727d8
fix bug in test_contentmanager
12 years ago
Brian E. Granger
136a19e5eb
Added base class for Notebook API tests.
12 years ago
Zachary Sailer
483d16c8ed
clean kernel manager
12 years ago
Zachary Sailer
22e351ae3b
cleaning nb handlers, adding doc-strings/comments
12 years ago
Zachary Sailer
8c2009874c
session manager restructuring
...
Redid the sessionmanager, added tests for the session manager,
and added a sqlite database to hold kernel,session,nb mapping.
12 years ago
Paul Ivanov
b8318708eb
clean up of get_os_path and its tests
...
work with @Zsailer
12 years ago
Zachary Sailer
34b9840786
fixing broken links from recent changes.
...
After fixing operating system path changes in previous commits,
many links needed to be adjusted to direct to the correct URL.
12 years ago
Zachary Sailer
470595f9e7
handle path separators with os.sep and add tests
...
Added more tests to the notebook manager to check for the correct
path separators on different operating system. Fixed the get_path
method.
12 years ago
Zachary Sailer
bdbe30dc3a
url encode/decode tests added to nbmanager
12 years ago
Paul Ivanov
f42de98c5b
use new assumptions for named_notebook_path
12 years ago
Paul Ivanov
7ca8a21bf6
named_notebook_path: consistent usage convention
12 years ago
Paul Ivanov
a083ad1fd7
more named_notebook_path cleanup
...
named_notebook_path now returns path with leading and trailing slashes.
Work with @Zsailer
12 years ago
Paul Ivanov
fd7a64ff38
simplified named_notebook_path implementation
...
Also updated the tests
12 years ago
Paul Ivanov
9f08aa5a08
cleaning up named_notebook_path
12 years ago
Paul Ivanov
11e5bd7b24
adding tests for named_notebook_path
...
I want to do some refactoring, so I'll put in some tests that will define the
behavior that I want to preserve, so I can verify that my refactoring hasn't
broken anything.
12 years ago
Thomas Kluyver
18fdb26273
Fix to if test
12 years ago
Thomas Kluyver
6154c5f626
Remove some unnecessary imports
12 years ago
Thomas Kluyver
2a81c5f80c
Update docstring
12 years ago
Thomas Kluyver
213b89c1cc
Simplify encoding/decoding URL parts
12 years ago
Thomas Kluyver
adb2fc1fa4
Better use Python slicing
12 years ago
Zachary Sailer
2372628552
entry from command line to notebook
12 years ago
Zachary Sailer
1f04b48725
Renaming fixed
12 years ago
Zachary Sailer
f3af343f4f
Change new/copy URLS to POST requests
12 years ago
Zachary Sailer
a74b9a018b
removed '/new' URL and added POST notebook request
12 years ago
Zachary Sailer
8261ac2cb9
change standard money keys
12 years ago
Zachary Sailer
c7375e170f
rebase master- eliminate read-only
12 years ago
Zachary Sailer
1b2e41eea4
path with spaces completely fixed
12 years ago
Zachary Sailer
eb1690255d
allow spaces in notebook path
12 years ago
Zachary Sailer
a219abaeeb
standard model changes
12 years ago
Zachary Sailer
5af83cd705
redirect url after notebook rename
12 years ago
Zachary Sailer
fd282698bc
removing debug logs
12 years ago
Zachary Sailer
b170c5dee0
allow notebook names with spaces
12 years ago
Zachary Sailer
5462cb4d9b
fixed delete_content in contentmanager
12 years ago
Zachary Sailer
91f25dc046
add contents web service api
12 years ago
Zachary Sailer
6114d4c338
drop file ext off notebook name in notebook
12 years ago
Zachary Sailer
f55381d55b
completer now recognizes session
12 years ago
Zachary Sailer
ad621913f1
added folder creation ability using '/-new'
12 years ago
Zachary Sailer
d06cf1fed7
added "last_modified" to notebook_model
12 years ago
Zachary Sailer
d4ee2da291
proper '.py' and '.ipynb' download files
12 years ago
Zachary Sailer
022b8324b2
Download '.py' fixed, deleted debugging output
12 years ago
Zachary Sailer
bfff3d817d
Fixed bug when linking kernel to new code cells
12 years ago
Zachary Sailer
c4e06a3728
allow rename in subdirectory notebooks
12 years ago
Zachary Sailer
ece92127d3
Add 'patch' to session & notebook, rename working
12 years ago
Zachary Sailer
e4a7b724a6
fixed shutdown button refresh on dashboard
12 years ago
Zachary Sailer
d41544865a
fix kill_and_exit button in notebook
12 years ago
Zachary Sailer
62ec52e276
fix restart/interrupt kernel buttons
12 years ago
Zachary Sailer
324370de53
delete debug comment
12 years ago
Zachary Sailer
20324bafd0
fixing path redirects, cleaning path logic
12 years ago
Zachary Sailer
11cef9ab45
fixing some bugs after rebase
12 years ago
Zachary Sailer
7fbeb814f8
manual rebase tree/handlers.py
12 years ago
Zachary Sailer
d16fe2f826
manual rebase html notebook templates
12 years ago
Zachary Sailer
afb0d571f4
manual rebase static/tree/
12 years ago
Zachary Sailer
385ad6f509
manual rebase static/services (add session.js)
12 years ago
Zachary Sailer
0f52ffa756
manual rebase static/notebook/js files
12 years ago
Zachary Sailer
0559df1b8a
manual rebase - add sessions web service
12 years ago
Zachary Sailer
98e67bfa22
manual rebase notebooks web services
12 years ago
Zachary Sailer
09c4ecbb10
manual rebase services/kernels/
12 years ago
Zachary Sailer
f998dae05f
manual rebase notebookapp.py
12 years ago
Zachary Sailer
72ec51128d
manual rebase notebook/handlers.py
12 years ago
Zachary Sailer
521f03793a
manual rebase base/handlers.py
12 years ago
Min RK
1b9aef3959
Merge pull request #4377 from minrk/fix-cancel
...
fix tooltip cancel
pending tooltip from open-parenthesis was not being cancelled properly
12 years ago
Matthias Bussonnier
f11b95358c
Merge pull request #4293 from Carreau/tooltip-mkp
...
Factorise code in tooltip for julia monkeypatching
12 years ago
Matthias Bussonnier
40eb635824
Merge pull request #4292 from Carreau/more-cpl
...
improve js-completer logic.
12 years ago
Paul Ivanov
7f5e7f4e6d
fix (CTRL-M -) shortcut for splitting cell in FF
...
fun-fact: Chromium uses a different keycode for hyphen/minus than does
Opera and Firefox.
12 years ago
Paul Ivanov
c165b57132
split focuses the top of the newly created cell
12 years ago
MinRK
7080a10362
split adds new cell above, rather than below
...
preserves the order of code and output across split event
rather than moving output into the middle of the split.
12 years ago
MinRK
543b317d92
fix tooltip cancel
...
pending tooltip from open-parenthesis was not being cancelled properly
12 years ago
Brian E. Granger
7ccb1bbc8a
Merge pull request #4154 from ellisonbg/mathstyle
...
Center LaTeX and figures in markdown
12 years ago
Brian E. Granger
882c791a8a
Fixing comments on equation justification.
12 years ago
Matthias Bussonnier
598409c8f0
Merge pull request #4333 from minrk/notebook-metadata
...
Add Edit Notebook Metadata to Edit menu
12 years ago
MinRK
4a04553acd
add Edit Notebook Metadata to Edit menu
12 years ago
Matthias BUSSONNIER
fa23fb9d6d
Partial fix to #3653 (from foo import <tab>)
...
Some configurability for Julia
(change the regexp because ! is a valid char in token from them)
12 years ago
Brian E. Granger
1963605e1f
Fixing minor comment.
12 years ago
Brian E. Granger
b41b519127
Removing inversion of the completion list.
12 years ago
Brian E. Granger
c3d128d38a
Adjust tab completion widget if too close to bottom of page.
12 years ago
Matthias Bussonnier
7c4c9d1c1b
Merge pull request #4289 from jdfreder/clearoutput
...
Fix scrolling output (not working post clear_output changes)
Regression introduced in #4229
12 years ago
Jason Grout
54aa8a9f61
Make parameters for kernel start method more general
12 years ago
Jonathan Frederic
39c6103159
s/'auto'/''
12 years ago
MinRK
8577550756
move edit_metadata to IPython.dialog
12 years ago
MinRK
4d48a84c8b
catch EACCES when binding notebook app
...
can come up for low ports on *ix, or user access control restrictions on Windows.
closes #4308
12 years ago
MinRK
cb953bfcc7
limit random ports to positive values
12 years ago
Matthias Bussonnier
09eacebef7
Merge pull request #4277 from minrk/jsext
...
serves files in IPYTHONDIR/nbextensions at /nbextensions.
This is a location for users / devs to drop-in frontend customization as js modules, css, etc.
The model is very much like the extensions dir (hence the name) - it's a location made available, but not loaded by default. You can load things from there with require, etc.
It's a configurable search path, just like static. This way we can define a system-wide location at a later point
13 years ago
Matthias BUSSONNIER
1a3881dd54
Factorise code in tooltip for julia monkeypatching
13 years ago
Jonathan Frederic
6f0bbe91e1
Fix scrolling output not working
...
by adding a conditional for the append output
height reset.
13 years ago
Matthias Bussonnier
fbbef5174a
Merge pull request #4282 from ellisonbg/linebreaks
...
Enable automatic line breaks in MathJax.
13 years ago
MinRK
eae0cc7e77
s/nb_extensions/nbextensions
13 years ago
MinRK
06b2fdc076
serve local mathjax from nb_extensions
13 years ago
MinRK
84e2384acf
s/js_extensions/nb_extensions
13 years ago
Min RK
bcaa844afd
Merge pull request #4279 from ellisonbg/itemname
...
Fixing line-height of list items in tree view.
13 years ago
Matthias Bussonnier
b16530e57e
Merge pull request #4253 from Carreau/fix-4039
...
fixes #4039 .
Issues is that $(selector).val() return the associated text if no data
is present (hence one cannot associate explicitely an option to
"undefined")
fix in doc and example.
13 years ago
Brian E. Granger
3ef9498d2f
Enable automatic line breaks in MathJax.
13 years ago
Brian E. Granger
3edfec77c3
Fixing line-height of list items in tree view.
13 years ago
MinRK
c85292cf2e
add js_extensions_path
...
serves files in `IPYTHONDIR/js_extensions` at `/js_extensions`.
This is a location for users / devs to drop-in frontend customization as js modules, css, etc.
The model is very much like the extensions dir (hence the name) - it's a location made available, but not loaded by default. You can load things from there with require, etc.
It's a configurable search path, just like static. This way we can define a system-wide location at a later point (/usr/share/ipython/js_extensions?) and still have user installs.
13 years ago
Brian E. Granger
ba38fad3b8
Refactoring the center/left justify.
13 years ago
Brian E. Granger
54c751ce50
Merge pull request #4229 from jdfreder/clearoutput
...
Clear_output: Animation & widget related changes.
13 years ago
Brian E. Granger
33ceac3a99
Removing page.less from base style.less.
13 years ago
Matthias BUSSONNIER
e175bec1a7
fixes #4039 .
...
Issues is that $(selector).val() return the associated text if no data
is present (hence one cannot associate explicitely an option to
"undefined")
fix in doc and example.
13 years ago
Brian E. Granger
0ab0153e5a
Removing extra comment.
13 years ago
Brian E. Granger
4b8ccb37e1
Adding 1em spacing above and below tables in rendered html.
13 years ago
Brian E. Granger
8d9f2e367a
Centering for tables/images/math in Markdown.
13 years ago
Brian E. Granger
417e99e4ae
Compiling CSS for this branch.
13 years ago
Brian E. Granger
8dd8446315
Indenting MathJax rendered equations in rendered_html divs.
...
This is designed to match the indentation level of MathJax equations
in output.
13 years ago
Brian E. Granger
b78b79c7cc
Fixing less @import paths in auth/base/tree.
...
These paths were problematic for --NotebookApp.use_less=True mode.
13 years ago
Brian E. Granger
fc9f3fe72b
Merge pull request #4166 from minrk/localinterfaces
...
avoid executing code in utils.localinterfaces at import time
13 years ago
Brian E. Granger
523b3645fe
Merge pull request #4232 from minrk/no-lang-no-highlight
...
no highlight if no language specified
13 years ago
Jonathan Frederic
b8d7197ec6
Don't preserve height when clear_output(wait=False) is called
13 years ago
MinRK
e3f2eb8452
no highlight if no language specified
13 years ago
Jonathan Frederic
6bfd28b91d
Added wait flag to clear_output.
13 years ago
MinRK
c8cea9d807
avoid executing code in utils.localinterfaces at import time
...
moves away from global constants to utility functions.
The code is still only executed once,
but instead of at import time, it is executed at first request.
13 years ago
Jonathan Frederic
00f0c827e9
Removed ability to clear stdout and stderr individually.
13 years ago
Jonathan Frederic
2b6add80f1
Remove clear_output timeout callback in favor of fixed height
13 years ago
MinRK
5d19c204db
clear previous callbacks on execute
...
avoids mixed up display of multiple executions in one output area
when a cell is resubmitted.
closes #4223
13 years ago
MinRK
b322e72bee
add Kernel.clear_callbacks_for_msg
13 years ago
Min RK
5a3da993e3
Merge pull request #4183 from tkanmae/fix-vim-escape
...
ESC should be handled by CM if tooltip is not displayed
13 years ago
Takeshi Kanmae
7071ae8d90
Update boolean tests
13 years ago
MinRK
ddfeab7728
Merge pull request #4193 from juhasch/overflow-x
...
Firefox seems to require an additional "url-prefix()" for #3549 to work.
13 years ago
MinRK
a1fc91d9ff
fab css
13 years ago
Min RK
4ec07adc60
Merge pull request #4201 from minrk/no-merge-heading
...
HeadingCells cannot be split or merged
closes #4200
13 years ago
Matthias Bussonnier
89109e73d1
Merge pull request #4079 from minrk/status_started
...
trigger `Kernel.status_started` after websockets open
13 years ago
MinRK
2cf6921166
HeadingCells are not splittable or mergeable
...
closes #4200
13 years ago
MinRK
37a345bd93
add Cell.is_mergeable method
...
and check it in the Notebook merge methods
13 years ago
juhasch
deab820002
append Firefox overflow-x fix
13 years ago
Takeshi Kanmae
9ceedb62d0
Have remove_and_cancel_tooltip() return a boolean
13 years ago
Takeshi Kanmae
a11ebc8b0a
ESC should be handled by CM if tooltip is not on
13 years ago
Min RK
5e590218f2
Merge pull request #4136 from minrk/catch-js
...
catch javascript errors in any output
not just javascript.
catches js errors appending anything to the output area, such as js in HTML (#4095 ).
closes #4095
13 years ago
Paul Ivanov
c3b1e07d70
Merge pull request #4125 from minrk/test-help-output
...
Basic exercise of `ipython [subcommand] -h` and help-all
13 years ago
Min RK
287f432d20
Merge pull request #4159 from minrk/minor-style
...
don't split `.cell` and `div.cell` CSS
I know we have bigger CSS scoping issues to deal with, but this is an easy fix for an obvious problem.
13 years ago
Min RK
90d3e90afe
Merge pull request #4065 from Carreau/ecss
...
do not include page css in ipython.min.css
13 years ago
Min RK
76f8de32ea
Merge pull request #4064 from Carreau/default_mode
...
Store default codemirror mode in only 1 place
13 years ago
Kevin Burke
2cf73980c0
Select default title when renaming a notebook
...
The default notebook name is Untitled<x>. It is unlikely the user will want to
keep this name or part of it. Instead, select the text in the input field so the
user can easily type over the name and change it.
13 years ago
MinRK
3211227ecf
fab css
13 years ago
MinRK
29c48fd538
don't split `.cell` and `div.cell` CSS
...
`.cell` matches non-IPython things that it shouldn't (inside highlighted code),
everything `.cell` should match in IPython is a div.
13 years ago
MinRK
80d2d15620
only test `--help-all`
...
help-all is a superset of `-h`, so no need to do both,
since these tests are slow.
13 years ago
MinRK
50b31960b3
test that `-h` and `--help-all` work for various IPython entry points
...
should help catch when we break these things.
13 years ago
MinRK
3eac345480
update example custom.js
...
fix event for at-page-load events
use font-awesome icon, not jquery-ui
closes #3998
13 years ago
MinRK
5c607a9e8a
use _safe_append for all output
...
catches js errors appending anything to output,
including javascript in an HTML output.
closes #4095
13 years ago
MinRK
bce60e1be7
pass profile-dir instead of profile to Kernel
...
avoids relative path issues for local profiles
when the notebook server starts in a different directory
from the kernels.
13 years ago
MinRK
971aea1eda
trigger `Kernel.status_started` after websockets open
...
This leads to a more logical state for event watchers to expect.
13 years ago
Zachary Sailer
a16211ceff
minor bug fix, define 'var' in dialog.js.
...
The 'cell' variable isn't defined and causes and error in the
console
13 years ago
Matthias Bussonnier
b6e5dc0f65
catch if cm_config of other key undefined
13 years ago
Matthias BUSSONNIER
a363216d89
do not include specific css in embedable one
13 years ago
Matthias BUSSONNIER
fc8f118610
store default codemirror mode in only 1 place
13 years ago
Matthias Bussonnier
a133236f56
Merge pull request #3969 from Carreau/usestrict
...
"use strict" in most (if not all) our javascript
plus fix one variable leaking in global namespace
13 years ago
Matt Henderson
b7ed106d11
must...bring...back...comma
13 years ago
Matt Henderson
af03eb6d1b
Modified initial template_path to pickup any overridden value by the user
13 years ago
Matt Henderson
918d872f2c
needed proper dict syntax
13 years ago
Matt Henderson
56b33145e7
Fixed custom jinja2 templates being ignored when setting template_path
13 years ago
Paul Ivanov
2778e98945
DOC: fix links to matplotlib, notebook docs
...
I've added a link to pandas, made all matplotlib links point to
matplotlib.org, and fixed a link in the notebook help menu to point to
our new notebook.html, now that htmlnotebook.html is a redirect.
Whoever ends up merging this PR should backport it to 1.x.
13 years ago
Matthias Bussonnier
f996a93455
Merge pull request #3937 from Carreau/redtab
...
make tab visible in codemirror
13 years ago
Matthias Bussonnier
d04be020c1
Merge pull request #3939 from minrk/checkpoints
...
minor checkpoint cleanup
remember list of checkpoints browser-side
don't clobber list when a new checkpoint is created
cleanup references in MenuBar restore list. There was a closure issue, where multiple menu items would actually all restore the same checkpoint.
13 years ago
Matthias Bussonnier
ddca43174d
Merge pull request #3955 from Carreau/fix-3954
...
complete on % for magic in notebook
13 years ago
Matthias BUSSONNIER
1f4a7eae4e
remove red background, cleanup less file
13 years ago
Bussonnier Matthias
0226efa02d
make tab visible in codemirror and light red background
...
Shoudl fix #3935
13 years ago
Matthias BUSSONNIER
13ff842be5
"use strict" in most (if not all) our javascript
...
+ fix one variable leaking in global nameespace
13 years ago
Andrea Bedini
0fd65c4de3
Fix ansi color code for background yellow
13 years ago
Matthias BUSSONNIER
57c5d901dc
fix completion when shared start among completion item is null
13 years ago
Matthias BUSSONNIER
faa6d63176
complete on % for magic in notebook
...
fixes #3954
13 years ago
Bussonnier Matthias
9c02a3054b
recompile css
13 years ago
MinRK
3f3709526c
minor checkpoint cleanup
...
- remember list of checkpoints browser-side
- cleanup references in MenuBar restore list.
There was a closure issue, where multiple menu items would actually all restore the same checkpoint.
13 years ago
MinRK
c0ec02bdb4
swallow enter event in rename dialog
...
avoids adding newline in cell after dialog is closed.
closes #3926
13 years ago
Min RK
db01a67d5f
Merge pull request #3896 from ivanov/fix-3895
...
two column quickhelp dialog
fits on one page.
closes #3895
13 years ago
MinRK
a186b25626
explicitly load python mode before IPython mode
...
ensures IPython mode gets defined at startup,
which can sometimes fail because the Python mode was loaded dynamically.
closes #3636
13 years ago
Paul Ivanov
481a6a3070
two column quickhelp dialog, closes #3895
...
now that quickhelp is a modal dialog, it makes sense to have it be wider
and have the shortcuts take up two columns, instead of one. This change
makes that possible. See the results here:

13 years ago
Andrea Bedini
47b873295a
Fix documentation of Kernel.stop_channels
13 years ago
Min RK
ac88931fee
Merge pull request #3850 from minrk/store_history
...
add missing store_history key to Notebook execute_requests
13 years ago
Min RK
76b45c7bd3
Merge pull request #3844 from minrk/payload
...
update payload source
should be simple key, not Python- (or worse, IPython-) specific long key.
I could have sworn I did this long ago, but apparently the source key was only updated in display_data, not execute_reply.
13 years ago
Min RK
40b113fc4e
Merge pull request #3848 from minrk/empty-docstring
...
fix incorrect `empty-docstring`
13 years ago
MinRK
9845ba1416
add missing store_history key to Notebook execute_requests
13 years ago
MinRK
1f97024d2b
fix incorrect `empty-docstring`
...
in notebook tooltip.
The else condition wasn't quite right, and would set doctsring to 'empty doctsring'
even when there was a doctoring.
13 years ago
Jessica B. Hamrick
3001ef8535
Parse markdown correctly when mathjax is disabled
13 years ago
MinRK
6277c845c3
update payload source
...
should be simple key, not Python (or worse, IPython) specific long key.
I could have sworn I did this long ago,
but apparently the source key was only updated in display_data,
not execute_reply.
13 years ago
Min RK
a95cec67ea
Merge pull request #3824 from minrk/heading-link-local
...
don't set target on internal markdown links
simple in-page anchor navs shouldn't open a new tab.
13 years ago
MinRK
ef6b991881
don't set target on internal markdown links
...
simple in-page anchor-nav shouldn't open a new tab.
13 years ago
MinRK
698953e8b1
don't recommend `ipython notebook --matplotlib`
13 years ago
Matthias BUSSONNIER
8b71a49fc2
remove again a few other occurences
13 years ago
Jessica B. Hamrick
9973445f9a
Closes #3788
13 years ago
Matthias Bussonnier
11cffbe52e
Merge pull request #3781 from minrk/oinfo_request
...
comply with the message spec in the notebook
13 years ago
MinRK
d3540da8f5
add missing block key in complete_request
13 years ago
MinRK
defd49a8b9
comply with the message spec in object_info requests
...
missing detail_level key
13 years ago
MinRK
03883d82e4
remove bad `if logged_in` preventing new-notebook without login
13 years ago
Matthias Bussonnier
e07ddebdf6
Merge pull request #3743 from minrk/noro
...
remove notebook read-only view
it is largely broken, and had problematic security issues.
13 years ago
Matthias Bussonnier
b78f0851a3
Merge pull request #3732 from minrk/slow-save-on-close
...
add delay to autosave in beforeunload
allows forceful 'discard changes' by reloading the page and dismissing the warning.
The timer doesn't start until after the dialog is dismissed, so if you decide to nav away without saving changes, the changes will actually not be saved.
13 years ago
Matthias Bussonnier
68cf7df38a
Merge pull request #3741 from minrk/badnbmsg
...
better message when notebook format is not supported
different messages for bad version and bad JSON.
closes #1592
13 years ago
Stefan Karpinski
f0cb45536c
handle empty metadata in pyout messages more gracefully.
13 years ago
MinRK
f9dd129e1c
remove notebook read-only view
...
it is largely broken, and had problematic security issues.
13 years ago
MinRK
2a09958bb6
better message when notebook format is not supported
...
Different messages for bad version and bad JSON.
closes #1592
13 years ago
MinRK
6970a79e6a
add delay to autosave in beforeunload
...
allows forceful 'discard changes' by reloading the page and dismissing the warning,
which @fperez really wanted today.
13 years ago
MinRK
6fbbd1dea3
remove any lingering raw_inputs on raw_input
...
There should never be more than one,
so ensure that is the case on creation.
closes #3710
13 years ago
MinRK
cea07fb351
bind kernel events in Kernel.bind_events
...
avoids multiple-register of send_input event
13 years ago
Min RK
73771392aa
Merge pull request #3685 from minrk/pager
...
fix Pager.detach
detaching the pager would result in the pager not working anymore.
13 years ago
Rick Lupton
7b474e5ce6
Fix rename notebook - show error with invalid name
...
Before the dialog was closing anyway so you couldn't see the error message.
13 years ago
MinRK
0f5de6f4f8
fix Pager.detach
...
detaching the pager would result in the pager not working anymore.
13 years ago
Min RK
a7cf16ce98
Merge pull request #3660 from minrk/focusclick
...
refocus active cell on dialog close
if there is one.
Otherwise the cursor is lost on kernel restart, etc. and the mouse must be used to get back to work.
13 years ago
Matthias BUSSONNIER
38fc90a1b0
add mising semicolon
13 years ago
Matthias BUSSONNIER
42fb90acac
patch header-cell and use-strict
13 years ago
Matthias BUSSONNIER
e166732257
linting and remove unused var
13 years ago
Matthias BUSSONNIER
7a452f10ca
statelessify matjaxutils
...
stateless-ification of function that was using module level
variable to share data.
Now varaible are passed around, and usage of replace math
require user to pass a return value of remove_math around
13 years ago
Matthias Bussonnier
ba24f709cb
Merge pull request #3673 from minrk/cm-comment
...
enable comment/uncomment selection in notebook
Bound to `(cmd|ctrl)-/`
13 years ago
MinRK
127a0669ff
enable comment/uncomment selection
...
with `(cmd|ctrl)-/`
closes #1540
13 years ago
Min RK
374579a65c
Merge pull request #3559 from minrk/create_delete_events
...
add create.Cell and delete.Cell js events
closes #3154
13 years ago
Min RK
5ac40d0746
Merge pull request #3651 from minrk/cleanup
...
remove a bunch of unused `default_config_file` assignments
These are never used, I don't know where they came from.
13 years ago
MinRK
79d9f0f039
refocus active cell on dialog close
...
if there is one
Otherwise, the cursor is lost on kernel restart, etc.
13 years ago
Min RK
117d99ad2a
Merge pull request #3630 from minrk/css
...
CSS adjustments
- remove boilerplate.css, as it is redundant with bootstrap's own reset.less
- add ipython.less / ipython.min.css for IPython-only CSS
- move font-awesome to outermost style.less, so it is not included in ipython.min.css,
where it is not desirable.
This doesn't do any of the naming / scoping cleanup that we should ultimately do, but it does create the file where that will have its desired effect.
13 years ago
Min RK
99a9782eb7
Merge pull request #3601 from minrk/headingmath2
...
Markdown in heading cells (take 2)
closes #3053
closes #3597
13 years ago
Min RK
f395271e95
Merge pull request #3621 from minrk/htmlerror
...
catch any exception appending output
HTML output can have javascript with errors, etc.
No output should ever raise, no matter what.
closes #3620
13 years ago
MinRK
af7564253d
remove a bunch of unused `default_config_file` assignments
...
These are never used, I don't know where they came from
13 years ago
Min RK
51f4b08174
Merge pull request #3571 from damianavila/split_shortcut
...
Added `^M -` as shorcut to split cell.
13 years ago
Min RK
f3fa5cd181
Merge pull request #3624 from minrk/argunicode
...
fix some unicode in zmqhandlers
Prevented session identity from being set properly, which in turn prevented stdin from working in the notebook in Python 3.
closes #3494
13 years ago
MinRK
7ff586a134
move font-awesome to style.less from notebook-specific less
...
allows it to be excluded from ipython.min.css,
where it doesn't make much sense.
13 years ago
MinRK
68c314cb39
add IPython-only CSS
...
adds static/style/ipython.less and ipython.min.css
Which should contain minimal styling that conflicts with other CSS.
As we improve our CSS scoping and naming,
this file should eventually be enough to play nice with embedding IPython in other HTML contexts.
13 years ago
MinRK
409a1bb6e1
remove boilerplate.css
...
it is redundant with bootstrap reset
13 years ago
Paul Ivanov
03006024ba
passing cell to showInPager, closes #3625
13 years ago
MinRK
638c36a7f7
fix some unicode in zmqhandlers
...
prevented session identity from being set properly,
which in turn prevented stdin from working in the notebook in Python 3.
closes #3494
13 years ago
MinRK
38869a60e4
catch any exception appending output
...
HTML output can have javascript with errors, etc.
No output should ever raise, no matter what.
closes #3620
13 years ago
MinRK
c800ed9671
be pedantic about VT100 vs ANSI in comments
13 years ago
MinRK
13a89a74e3
add indexed-color in 256-color support
13 years ago
MinRK
49e6a36f7c
add ansi background colors
13 years ago
MinRK
1186d575a9
expand ANSI color support
...
adds support for 256 colors
does not yet add support for themed 16-color mapping ([01;38;5;[0-15])
closes #3617
13 years ago
MinRK
55192ef881
fix regular expression for ANSI escapes
...
wouldn't catch `\x1b[01;`, only `\x1b[0;` or `\x1b[1;`.
closes #3614
13 years ago
MinRK
47061360da
remove unnecessary heading-anchor
...
residue from when the heading text itself was a link
the id is on the header tag itself,
and the link is anchor-link
13 years ago
MinRK
185769d1b9
merge heading lines
...
markdown headings must be a single line
13 years ago
MinRK
b5f0be18de
truncate invalid multi-line headers
13 years ago
MinRK
45d0dd0a45
Markdown in heading cells (take 2)
...
small typo prevented the previous implementation from working.
This also moves the rendering to the 'render' method,
away from set_rendered.
closes #3053
(again)
13 years ago
Min RK
2e417e82f0
Merge pull request #3594 from Carreau/fixes-3563
...
Fix duplicate completion in notebook
comparaison between kernel completion and context-completin were
returning duplicate entry in some cases, due to trailing space.
sripping trailing space in comparaison prevent this.
closes #3563
13 years ago
Matthias Bussonnier
f373e850ae
Merge pull request #3595 from Carreau/rever-md-in-head
...
Revert "allow markdown in heading cells"
13 years ago
Matthias BUSSONNIER
1fbf5a6a2c
Revert "allow markdown in heading cells"
...
This reverts commit 8c83c3b958b3c9f65d9446f69b2704a0b263b07b.
13 years ago
Matthias BUSSONNIER
1e75582e48
Fix duplicate completion in notebook
...
comparaison between kernel completion and context-completin were
returning duplicate entry in some cases, due to trailing space.
sripping trailing space in comparaison prevent this.
fixes #3563
example
import bar
from foo im<tab>
used to propose `import` twice (actually `import` and `import[space]` as$
`import` was a token on the first line) now just complete directly to$
`import[space]`.
13 years ago
Matthias Bussonnier
9b08a557e5
Merge pull request #3538 from minrk/launch_ip
...
add IPython.start_ipython
A public API for starting a real (non-embedded) IPython instance.
should avoid API breakage in the future due to simple module renames, as has just happened with the removal of frontend.
For implementation purposes, I have added launch_new_instance as a classmethod on Application. I did this, because I wanted to add the ability to pass arguments to the instance, and didn't want to manually update every duplicate launch_new_instance.
closes #1537
13 years ago
damianavila
7aab2ec291
Added '-' as a shortcut for splitting cells.
13 years ago
Min RK
f0db998d4d
Merge pull request #3560 from minrk/longcell
...
Remove max_msg_size
The max_msg_size safety limit is just removed.
closes #3124
13 years ago
MinRK
39578beabc
remove max_msg_size altogether
...
It was a security feature without an application.
13 years ago
Matthias Bussonnier
b0922caa81
Merge pull request #3567 from Carreau/app-init-event
...
Trigger a single event on js app initilized.
13 years ago
Matthias Bussonnier
1f2c975c84
Merge pull request #3531 from minrk/headingmath
...
allow markdown in heading cells
13 years ago
Matthias BUSSONNIER
755b13a7c4
Simplify codemirror ipython-mode
...
make it a subset of python mode, only with configuration
13 years ago
Matthias BUSSONNIER
2272edf715
correct static path for CM modes autoload
...
this shoudl also allow to require CM python mode for ipython mode and
only pass a config options.
13 years ago
Matthias Bussonnier
e9c2ac802d
Merge pull request #3561 from minrk/double-c-c
...
mention double-control-C to stop notebook server in the initial log message.
13 years ago
damianavila
73e88b6677
Added shorcuts to split cell, merge cell above and merge cell below.
13 years ago
Matthias Bussonnier
fc5ea27155
Merge pull request #3566 from Carreau/fix-event-name
...
fix event names
13 years ago
MinRK
7fe1b00cdc
mention double-control-C to stop notebook server
...
in the initial log message.
closes #2971
13 years ago
Matthias BUSSONNIER
621c8c40a3
Trigger a single event on js app initilized
...
Usefull to bind to extension loading, to load only once
13 years ago
Matthias BUSSONNIER
41c84eb40e
fix event names
13 years ago
MinRK
4408ab6ca1
warn about messages dropped due to oversize
13 years ago
MinRK
563d9372bf
up default max_msg_size to 1MB
13 years ago
MinRK
5e20d457cd
add create.Cell and delete.Cell js events
...
The events fire after the cell has been created or deleted.
closes #3154
13 years ago
MinRK
0c6fe836ca
open markdown links in new tabs
...
restores earlier behavior lost when we switched to marked.
closes #3439
13 years ago
MinRK
ee6f7f4c3d
set overflow-x: hidden on Firefox only
...
workaround crazy Firefox-only behavior when selecting newlines
closes #3549
13 years ago
Brian E. Granger
7941da8fe2
Merge pull request #3498 from ellisonbg/nbname
...
When a notebook is written to file, name the metadata name u''.
13 years ago
Paul Ivanov
735ed2c67f
Merge pull request #3548 from takluyver/save-icon
...
Change to standard save icon in Notebook toolbar
What used to be a hard drive image is now the more traditional floppy image
13 years ago
Thomas Kluyver
e7bfd55357
Change to standard save icon in Notebook toolbar
...
Closes gh-3545
13 years ago
Matthias Bussonnier
cefbcbead1
Merge pull request #3526 from minrk/clusterlist
...
ensure 'default' is first in cluster profile list
when sorting, 'default' is transformed to ''.
13 years ago
Matthias Bussonnier
8e211a1290
Merge pull request #3525 from minrk/utc
...
Fix basic timezone info
minor tweaks to jsonutil, to include timezone info if available
add IPython.utils.tz, which just has basic info for making utcnow(), etc. include tzinfo in the datetime object
use this tzinfo in the last_modified keys in notebook managers, which fixes Firefox's timezone offset for checkpoints
13 years ago
Matthias Bussonnier
2052b1f1cf
Merge pull request #3513 from minrk/nocp
...
add 'No Checkpoints' to Revert menu
13 years ago
MinRK
3ffc6d0ab5
Application.launch_instance
...
removes `new` from method name, since it isn't accurate.
13 years ago
MinRK
63b65b8c6c
use launch_new_instance classmethod to launch apps
13 years ago
MinRK
09567f835b
remove debug statement
...
and anchor
13 years ago
Matthias Bussonnier
9640b57161
Merge pull request #3528 from minrk/staticbase
...
fix local mathjax with custom base_project_url
13 years ago
Matthias Bussonnier
1bbbeddafd
Merge pull request #3518 from takluyver/unused-imports
...
Clear up unused imports
Static analysis revealed a load of things that are imported but not used. I've tried to leave things that look like part of the API, and clear up other things.
Noticed a few test functions which had been copy-pasted without changing the name, in which case only the later one will run. I gave them separate names.
13 years ago
MinRK
d1a8c06c91
allow markdown in heading cells
...
italics, bold, math, etc.
closes #3053
13 years ago
MinRK
b20845172b
fix local mathjax with custom base_project_url
...
closes #2720
13 years ago
MinRK
13408ecf71
ensure 'default' is first in cluster profile list
...
when sorting, `'default'` is transformed to `''`.
13 years ago
MinRK
bc4a457fdc
add timezone info to `last_modified` in notebook managers
...
now Firefox won't get confused, turning utc timestamps into local times.
closes #3396
13 years ago
Thomas Kluyver
a2bf752dba
Remove unused imports in IPython.html
13 years ago
MinRK
d12a9b19c9
use bootstrap `disabled` instead of `ui-state-disabled`
...
in menubar
13 years ago
MinRK
40b882906f
add 'No Checkpoints' to Revert menu
...
when there are None, rather than an empty menu.
closes #3261
13 years ago
MinRK
b9706f23f5
use `window.onbeforeunload=` for nav-away warning
...
Firefox 22 broke `$(window).on("beforeunload")` somehow, for some reason,
resulting in always showing a dialog, regardless of the function's return value.
The only fix I could find was resorting to the basic low-level API.
13 years ago
MinRK
88668e65f8
don't use parent=self in handlers
...
handlers aren't configurable, so shouldn't be passed as parent.
closes #3502
13 years ago
Brian E. Granger
202dec41e6
Merge pull request #3478 from minrk/rewarn
...
restore "unsaved changes" warning on unload
13 years ago
Brian E. Granger
b3dc666ac9
Merge pull request #3493 from minrk/restart-dialog
...
add a dialog when the kernel is auto-restarted
13 years ago
Brian E. Granger
c323717fe7
Merge pull request #3430 from minrk/configinstance
...
add parent to Configurable
13 years ago
MinRK
1d64597ea8
move restart dialog to notebook.js
13 years ago
MinRK
d8fa8eea04
add a dialog when the kernel is auto-restarted
...
adds the autorestart status event for the dialog
so that user-restart is distinct from server-side auto restart.
closes #3490
13 years ago
Thomas Kluyver
acb7eefef8
Remove unexpected keyword parameter to remove_kernel
...
Closes gh-3474
13 years ago
MinRK
bd03a99e28
use `parent=self` throughout IPython
...
instead of `config=self.config`
only real effective change: IPythonKernelApp.parent has been renamed to IPKernelApp.parent_handle.
13 years ago
Brian E. Granger
a8dfc449a6
When a notebook is written to file, name the metadata name u''.
13 years ago
MinRK
a51f9e1a6e
update before unload message
...
mention pending autosave, if applicable
13 years ago
MinRK
09c7bba2b4
restore "unsaved changes" warning on unload
...
Autosave is triggered at this event, but it seems to fail sometimes (perhaps when it's too slow?).
closes #3475
13 years ago
MinRK
a3653e34b1
update references for IPython.html
13 years ago
MinRK
cf726d6a40
mv IPython.html.notebook -> IPython.html
13 years ago
Fernando Perez
f150b6f6a9
Fix all remaining imports that used `IPython.frontend`.
13 years ago
Fernando Perez
9858a93794
Fix all imports for the notebook.
13 years ago
Fernando Perez
20a015c1e6
Move frontend/html directory to top level.
13 years ago