MinRK
9396619f9d
security.js docstrings
2014-03-04 15:38:11 -08:00
Brian E. Granger
4e0a2ee476
Make sure we are in command mode before we select a new cell.
2014-03-04 15:09:49 -08:00
Brian E. Granger
8d38e042df
Merge pull request #5158 from ivanov/fix-5157
...
log refusal to serve hidden directories
2014-03-04 10:05:29 -08:00
MinRK
d8f2e320f2
trust method docstrings
2014-03-03 16:27:59 -08:00
MinRK
d5b0026cf1
trust via mark cells and save, rather than trust API request
2014-03-03 16:10:21 -08:00
MinRK
e7f3c05d28
remove unused get_attr_names
2014-03-03 16:10:21 -08:00
MinRK
6792d38215
log excluded untrusted output
2014-03-03 16:10:21 -08:00
MinRK
aaefc5f296
remove warning for stripped output
2014-03-03 16:10:21 -08:00
MinRK
b5c8a51331
disable trust notebook menu item on trusted notebooks
2014-03-03 16:10:20 -08:00
MinRK
c9c23cd71c
cleanup test_nbmanager
...
use class setUp / teardown instead of the same context manager in every test
2014-03-03 16:10:20 -08:00
MinRK
1ae689f30c
Add Trust Notebook to File menu
2014-03-03 16:10:20 -08:00
MinRK
46665483ed
remove struct-returning sanitize
...
only keep str-str sanitization
2014-03-03 16:10:20 -08:00
MinRK
d4780c2cfc
remove security.is_safe
2014-03-03 16:10:20 -08:00
MinRK
d59e44a190
default to allow_css = false
2014-03-03 16:10:20 -08:00
MinRK
4d35660f3c
sanitize CSS
...
rather than removing it entirely
2014-03-03 16:10:19 -08:00
MinRK
d7b1e8b45b
test style
2014-03-03 16:10:19 -08:00
MinRK
5f7f1c51ec
remove unused security warning
2014-03-03 16:10:19 -08:00
MinRK
c49f04545a
don't use result.safe
to communicate incomplete information
2014-03-03 16:10:19 -08:00
MinRK
028ce17c62
fix tagName comparison
2014-03-03 16:10:19 -08:00
MinRK
a7dc526b2b
testing for sanitize
2014-03-03 16:10:18 -08:00
MinRK
3897b1c39f
don't populate sanitized.safe by default
...
since it's potentially expensive.
walk nodes in is_safe
2014-03-03 16:10:18 -08:00
MinRK
6384502e47
sanitize untrusted HTML output
...
rather than checking is_safe
2014-03-03 16:10:18 -08:00
MinRK
3d0957c7bc
trust latex
...
If mathjax is insecure, we have big problems.
And we already trust mathjax in markdown cells,
so this is consistent.
2014-03-03 16:10:18 -08:00
MinRK
4b01948200
check trust of data-attributes in sanitization
2014-03-03 16:10:18 -08:00
MinRK
367b4f85c2
wrap caja.sanitizeAttribs to trust data-* attributes
2014-03-03 16:10:17 -08:00
MinRK
c298670a4b
use html-sanitizer instead of html-css
...
always scrub css (for now)
2014-03-03 16:10:17 -08:00
MinRK
eec5d427a4
add cmp_tree, in case caja log can't be trusted
...
(spoiler: it can't)
2014-03-03 16:10:17 -08:00
MinRK
0da66543a0
move security js test
2014-03-03 16:10:17 -08:00
MinRK
890c0be1dd
always sanitize markdown
...
don't check if it's safe or not
2014-03-03 16:10:17 -08:00
MinRK
2a0451fdde
use google-caja for sanitization
2014-03-03 16:06:41 -08:00
Brian E. Granger
07cdb1e195
Adding first round of security tests of is_safe.
2014-03-03 16:06:41 -08:00
Brian E. Granger
3b262912a1
Display safe HTML+SVG even if untrusted, but don't set trusted=1.
2014-03-03 16:06:40 -08:00
Brian E. Granger
31c9e08fa8
Don't render insecure Markdown and show warning.
2014-03-03 16:06:40 -08:00
Brian E. Granger
fa3f998295
Adding security.js with 1st attempt at is_safe.
2014-03-03 16:06:40 -08:00
Brian E. Granger
6f4263dc74
Removing conditionals that are not needed.
2014-03-03 16:03:06 -08:00
Paul Ivanov
6c8cccf9e3
fix test suite
...
is_hidden expects the file to actually exist, so I've rearranged the
logic such that is_hidden is called only after it's clear that the file
exists.
2014-03-03 16:02:07 -08:00
Brian E. Granger
e374ca5ebb
Refactoring Notebook.command_mode.
2014-03-03 15:32:05 -08:00
Thomas Kluyver
9c5f9e3a35
Merge pull request #5265 from ellisonbg/timeout-error
...
Missing class def for TimeoutError
2014-03-03 15:16:21 -08:00
Brian E. Granger
c6ddfbd0bf
Merge pull request #5267 from minrk/normalize-paths
...
normalize unicode in notebook API tests
2014-03-03 15:04:19 -08:00
Brian E. Granger
b1c87debde
Adding comment about this fix.
2014-03-03 14:50:06 -08:00
MinRK
052955a84a
normalize unicode in notebook API tests
...
was failing comparison on OS X
2014-03-03 14:33:45 -08:00
Brian E. Granger
dd55efc45d
Missing class def for TimeoutError.
2014-03-03 13:55:00 -08:00
Brian E. Granger
92967c0baf
Addressing things in completer.js.
2014-03-03 13:20:32 -08:00
Brian E. Granger
af7dd15181
Removing old keyboard handling from IPython.utils.
2014-03-03 13:13:50 -08:00
Brian E. Granger
929f5bc8ea
Fixing references to IPython.keycodes.
2014-03-03 13:10:18 -08:00
Brian E. Granger
c76ab1d836
Adding basic tests for keyboard.js
2014-03-03 13:10:17 -08:00
Brian E. Granger
ec6ea72873
Adding utility functions.
2014-03-03 13:10:17 -08:00
Brian E. Granger
ff1492f8c9
Creating new base/js/keyboard.js
2014-03-03 13:10:17 -08:00
Paul Ivanov
d6f2dfefea
log refusal to serve hidden files dirs
2014-03-03 12:35:37 -08:00
Jonathan Frederic
ede116bee7
Get cell after first conditional
2014-03-03 11:35:15 -08:00
Jonathan Frederic
479bc6b37a
Check down too.
2014-03-03 11:33:58 -08:00
Jonathan Frederic
bebe51c158
Don't allow edit mode up arrow to continue past index == 0
2014-03-03 11:27:58 -08:00
Paul Ivanov
1ce7d5ec80
tour: put the right arrow on the right side
2014-03-03 11:06:54 -08:00
Brian E. Granger
8c5b32c987
Merge pull request #5223 from minrk/tiny-images
...
use on-load event to trigger resizable images
2014-03-03 10:35:42 -08:00
Min RK
fa6bbe66f3
Merge pull request #5153 from takluyver/dashboard-sorting
...
Dashboard sorting
closes #5151
closes #5152
2014-03-02 17:40:38 -08:00
Paul Ivanov
6d0d34d7ed
entering edit mode now requires focus_cell
2014-03-01 01:23:34 -08:00
Matthias BUSSONNIER
a01c112b0f
allow custom headers on all pages
2014-03-01 09:43:27 +01:00
Paul Ivanov
bdbf2fe9d5
more robust forward and back tour transitions
2014-03-01 00:12:59 -08:00
Paul Ivanov
ccf6128962
addressing Fernando's feedback
2014-02-28 23:41:20 -08:00
Paul Ivanov
431c4dfeb6
correct instructions for updating components
2014-02-28 20:04:22 -08:00
Paul Ivanov
95bd36be10
don't automatically advance the tour
2014-02-28 20:04:22 -08:00
Paul Ivanov
9d1595aebb
more refinement of the tour contents
2014-02-28 20:04:22 -08:00
Paul Ivanov
405017875e
tidy up and add to the tour
...
@takluyver found some typos which I fixed now
2014-02-28 20:04:22 -08:00
Paul Ivanov
d11d9b4830
tidying up the tour explanation of modes
2014-02-28 20:04:22 -08:00
Paul Ivanov
3a43d776c2
End tour via 'x' in upper right corner of window
2014-02-28 20:04:22 -08:00
Paul Ivanov
1ee52fcbbc
pause/play buttons for starting/stopping the tour
2014-02-28 20:04:22 -08:00
Paul Ivanov
5725bf80f5
use minified tour
2014-02-28 20:04:22 -08:00
Paul Ivanov
600facc92d
allow tour restarting
2014-02-28 20:04:21 -08:00
Paul Ivanov
abe4732aa0
fix typo in tour.js
2014-02-28 20:04:21 -08:00
Paul Ivanov
5fead3cdd7
starting the tour from the menu works now
...
JavaScript makes me fond of this phrase:
When there's nothing left to burn, you have to set yourself on fire.
2014-02-28 20:03:47 -08:00
Paul Ivanov
d7b569390f
more work on the tour
2014-02-28 20:03:46 -08:00
Paul Ivanov
a765132684
add the tour to the page
2014-02-28 20:03:46 -08:00
Paul Ivanov
52766703b4
fix typo for the location of bower.json
2014-02-28 20:01:48 -08:00
Paul Ivanov
3cf601b58e
initial bootstrap tour
...
One way to get it to play currently is with a cell like this:
%%javascript
$.getScript('/static/notebook/js/tour.js')
provided that you have Bootstrap Tour installed in the components
2014-02-28 20:01:48 -08:00
Min RK
a9a0c71f75
Merge pull request #5244 from minrk/test-ipc
...
try to avoid EADDRINUSE errors on travis
2014-02-28 17:30:15 -08:00
MinRK
15fac2c1d6
make input_area css generic to cells
...
removes otherwise-identical text_cell_input class in text cells
2014-02-28 16:52:00 -08:00
MinRK
983271a36f
use on-load event to trigger resizable images
...
instead of timeout, which could get incorrect size information.
closes #5219
2014-02-28 16:46:55 -08:00
Brian E. Granger
88460cd212
Merge pull request #5175 from jdfreder/html-take2
...
Audit .html() calls take #2
2014-02-28 15:56:12 -08:00
Brian E. Granger
88fc1a0737
Merge pull request #5146 from jdfreder/modal-fix
...
Dual mode bug fixes.
2014-02-28 15:54:41 -08:00
Jonathan Frederic
39d39d0ea6
s/trigger_edit_mode/edit_mode
2014-02-28 15:52:28 -08:00
Jonathan Frederic
c41fe67da2
Re-added removed refresh
2014-02-28 15:22:30 -08:00
Jonathan Frederic
3bcee30e8c
Added comments to kbm and shrunk focus_cell lines
2014-02-28 15:11:21 -08:00
Jonathan Frederic
69e760841a
Move should cancel blur into codecell
2014-02-28 15:06:47 -08:00
Jonathan Frederic
4fdc99e111
Remove notebook load log succes
2014-02-28 15:03:27 -08:00
Jonathan Frederic
a6f883d7f2
Couple of whiteboard logic implementation misses
2014-02-28 14:30:06 -08:00
Jonathan Frederic
9451589e38
implemented whiteboard logic
2014-02-28 14:18:56 -08:00
Jonathan Frederic
673577cf6c
Merge pull request #5207 from Zaharid/childfireevent
...
Children fire event
2014-02-28 13:47:21 -08:00
MinRK
22486461f3
use ipc for notebook js tests
...
on linux only
This ought to prevent EADDRINUSE errors in the kernel.
2014-02-28 12:50:53 -08:00
Thomas Kluyver
8c1c18461c
Fix a couple of static analysis warnings
2014-02-28 11:38:28 -08:00
Thomas Kluyver
3698563794
Make hidden directories configurable
2014-02-28 11:37:26 -08:00
Thomas Kluyver
c75d4e9962
Don't attempt locale-aware sorting for now.
...
On Python 2, locale.strxfrm() can't handle unicode.
2014-02-28 11:35:49 -08:00
Thomas Kluyver
4fe9f8d057
Case insensitive sorting in the dashboard.
...
Closes gh-5151
2014-02-28 11:35:04 -08:00
Thomas Kluyver
c1e8ddc64e
Hide directories beginning with _ from the dashboard.
...
Closes gh-5152
2014-02-28 11:31:58 -08:00
Paul Ivanov
f8ab13b675
Merge pull request #5215 from ivanov/running-kernels
...
Dashboard "Running" Tab
2014-02-27 19:57:50 -08:00
Paul Ivanov
938f4bdfc4
small whitespace cleanup, renamed drag_info
...
in the dashboard, I've renamed drag_info to notebook_list_info, so
applying style to notebook_list_info and running_list_info can be done
in one place.
2014-02-27 19:36:42 -08:00
Min RK
1ff8d9153a
Merge pull request #5239 from takluyver/coverage-exclude-tests
...
Fix exclusion of tests directories from coverage reports
2014-02-27 18:30:22 -08:00
Paul Ivanov
eb4e674598
remove redundant checks in code
2014-02-27 18:13:53 -08:00
Paul Ivanov
14239c01e4
use explicit running header name + jquery's toggle
2014-02-27 17:59:16 -08:00
Thomas Kluyver
40ac479ae1
Merge pull request #5203 from minrk/test-log-warn
...
capture some logging/warning output in some tests
2014-02-27 17:55:29 -08:00
Thomas Kluyver
f8fbd82864
Fix exclusion of tests directories from coverage reports
2014-02-27 17:39:48 -08:00
Jonathan Frederic
0884716a7d
Re-added widget textbox blur fix FF
2014-02-27 16:15:11 -08:00
Jonathan Frederic
bfc51c2a29
Final touches?
2014-02-27 16:09:00 -08:00
Jonathan Frederic
c5fb037e41
Reorg index and focus_editor params on edit_mode func
2014-02-27 15:52:05 -08:00
Jonathan Frederic
048ca30b0c
Remove fixes that are implemented correct in new CM
2014-02-27 15:47:01 -08:00
Brian E. Granger
e847a31348
Always refresh the CM editor upon TextCell unrender.
2014-02-27 15:45:06 -08:00
Jonathan Frederic
b976804051
Moved edit_mode canceling logic back into cell.
2014-02-27 15:45:06 -08:00
Jonathan Frederic
ff37fb7a36
Standardized comments and removed last logs
2014-02-27 15:45:06 -08:00
Jonathan Frederic
64ae25508d
Removed change that is no longer needed
2014-02-27 15:45:06 -08:00
Jonathan Frederic
70086d352f
s/unfocus/blur
2014-02-27 15:45:06 -08:00
Jonathan Frederic
c7860d8bc8
Post in person review
...
Removed logic for reverse ordered events
Removed almost all of the log statements
Removed list for should unfocus callbacks
Removed all the logic in focus_editor
Only call focus_editor if the keyboard was used to enter edit mode
2014-02-27 15:45:06 -08:00
Jonathan Frederic
3595c099c2
Fixed rebase problems
2014-02-27 15:45:06 -08:00
Jonathan Frederic
10d79a9102
Added cell unfocus event canceller API
2014-02-27 15:45:05 -08:00
Jonathan Frederic
a6aaa8a886
Use is_focused for element kbman removal event
2014-02-27 15:45:05 -08:00
Jonathan Frederic
6f7c502157
Fixed lots of bugs
...
Half overhaul of notebook focus events...
2014-02-27 15:45:05 -08:00
Jonathan Frederic
206d35a89e
DEBUG
...
Added lots of log calls and a couple small 'fixes' (attempts)
2014-02-27 15:45:05 -08:00
Jonathan Frederic
7913305312
jshint
2014-02-27 15:45:05 -08:00
Thomas Kluyver
0059c317c3
Merge pull request #5216 from minrk/notebook-dir-cli
...
fixup positional arg handling in notebook app
2014-02-27 15:13:37 -08:00
Min RK
4038421da6
Merge pull request #5221 from jdfreder/ctuple
...
Change widget children List to Tuple.
2014-02-26 20:42:01 -08:00
MinRK
bdde544d47
don't forget base_url when updating address bar in rename
2014-02-26 15:01:07 -08:00
Paul Ivanov
7d1da4c550
refer to notebooks, not kernels.
2014-02-26 12:35:20 -08:00
MinRK
d8b6a1a0ba
don't validate ContainerWidget.children
...
just use a plain Tuple, so we don't have to define a new Trait
2014-02-25 19:08:43 -08:00
Paul Ivanov
b74b10e308
added IPython.session_list
...
before this, kernel_list and notebook_list each fetched and held onto
their own copy of the sessions.
2014-02-25 18:09:16 -08:00
Jonathan Frederic
6c1ef48f1a
Merge pull request #5173 from jdfreder/movewidgets
...
Moved widget files into static/widgets/*
2014-02-25 16:14:10 -08:00
MinRK
cc1ba8b1f7
remove incorrect is instance check in children_changed
2014-02-25 15:00:48 -08:00
MinRK
c89ec19fca
don't check shape of ContainerWidget.children
2014-02-25 14:37:12 -08:00
Jonathan Frederic
7855de2f13
s/CTuple/Tuple
2014-02-25 13:50:58 -08:00
Jonathan Frederic
dedbc3b0e1
Changed children list to CTuple.
...
Also removed some unused refences in the widget code
and added support for tuples in the pack/unpack code.
2014-02-25 09:46:27 -08:00
Min RK
0117b587ab
Merge pull request #4985 from damianavila/closebrackets
...
Enable autoCloseBrackets in CodeMirror by default.
2014-02-25 09:04:22 -08:00
MinRK
bb7f27541f
write config instead of direct assignment from the command-line
...
Gross.
2014-02-24 15:48:43 -08:00
MinRK
6e09314027
fixup positional arg parsing in notebook app
...
- `ipnb .` triggers override of sub-config, even when the parent isn't changed
- `ipnb /path/nb.ipynb` sets notebook_dir to `/path`
2014-02-24 15:42:49 -08:00
Paul Ivanov
06c689caa3
remove reiterated repetitively redundant "actively"
2014-02-24 15:02:08 -08:00
Paul Ivanov
a2b9c75e93
don't double-join the notebook path
2014-02-24 14:18:22 -08:00
Paul Ivanov
a27168ae3b
refresh of Notebook list should reload sessions
2014-02-24 13:12:15 -08:00
Paul Ivanov
af90cd8c62
fix typo in method name
2014-02-24 13:11:50 -08:00
Paul Ivanov
cb1bb62272
ok, Running tab is working now
2014-02-24 13:11:13 -08:00
Min RK
c73acb300f
Merge pull request #5200 from Carreau/jinja-no-cache
...
Allow to pass option to jinja env
2014-02-23 22:15:29 -08:00
Matthias BUSSONNIER
816df5bb34
Allow to pass option to jinja env
...
Mainly to pass cache_size=-1 while developping not to cache templates
2014-02-23 23:28:57 +01:00
zah
439003d709
Children fire event
...
Now when a container widget is displayed, the _handle_displayed method
of each of its children is fired.
2014-02-23 20:31:39 +01:00
MinRK
e02308e436
capture logging in a few tests
...
this could probably be made more general,
but these were the two places I noticed log output.
2014-02-22 21:12:19 -08:00
Fernando Perez
371afec677
Merge pull request #5112 from minrk/completion-band-aid
...
Band-aid for completion in the notebook: not the ideal solution, but will have to do the job for now so that typing while completing works.
closes #4860
2014-02-21 18:08:19 -08:00
Brian E. Granger
708c30c912
Merge pull request #5136 from minrk/interact-default
...
set default value from signature defaults in interact
2014-02-21 16:28:52 -08:00
Brian E. Granger
edb8d68331
Merge pull request #5132 from minrk/oops-pdf-transform
...
remove application/pdf->pdf transform in javascript
2014-02-21 16:28:12 -08:00
Brian E. Granger
7a35e2a0be
Merge pull request #5116 from minrk/os_path
...
reorganize who knows what about paths
2014-02-21 16:27:05 -08:00
Jonathan Frederic
28423647a2
Updated require references to point to new files
2014-02-21 16:25:52 -08:00
Jonathan Frederic
e0ba52c802
Moved widget files into static/widgets/*
...
Since they do not depend on anything ntoebook related
2014-02-21 16:25:52 -08:00
Min RK
612acd2e08
Merge pull request #5170 from jdfreder/widget-throttle-trait
...
Added msg_throttle sync=True widget traitlet
2014-02-21 15:32:10 -08:00
MinRK
386274488d
don't create notebook_dir if it doesn't exist
2014-02-21 13:22:57 -08:00
MinRK
d37780c6a6
use config instead of App.instance to propagate notebook_dir
...
Should behave more logically (I hope).
2014-02-21 13:22:57 -08:00
MinRK
f9e8824fef
use NotebookManager APIs in nbconvert handler
2014-02-21 13:22:56 -08:00
MinRK
cb25736a24
reorganize who knows what about paths
...
- add NotebookApp.notebook_dir
- add KernelManager.root_dir
- remove NotebookManager.notebook_dir, move to FileNBM.notebook_dir
Default value for KM.root_dir and fNBM.notebook_dir is NotebookApp.notebook_dir, but they can be configured separately.
SessionManager passes the API path to KernelManager,
which is responsible for turning it into the kernel's cwd.
2014-02-21 13:22:56 -08:00
Brian E. Granger
eda4569099
Merge pull request #5037 from jdfreder/ff-widget-align
...
FF Fix: alignment and scale of text widget
2014-02-21 12:37:40 -08:00
Jonathan Frederic
ef3f61f906
Use set_rendered to set the error msg of the cell.
2014-02-21 10:31:29 -08:00
Jonathan Frederic
946212d5fa
Treat set_rendered as unsafe.
2014-02-21 10:05:07 -08:00
Jonathan Frederic
407fc0a017
s/with with/with
2014-02-21 09:42:14 -08:00
Jonathan Frederic
6a224d131b
Move todos into set_rendered
2014-02-21 09:40:14 -08:00
MinRK
62f318c777
undo failed changes
...
before raising
otherwise, invalid values were still accepted
2014-02-20 22:57:01 -08:00
MinRK
37cb0fbdee
remove websocket url
...
websockets should follow the kernel URL
(normal behavior is unchanged, only unused configurability is removed)
2014-02-20 22:54:36 -08:00
MinRK
b51cc50357
further tests for default values in interact
...
both valid and invalid
2014-02-20 22:37:04 -08:00
MinRK
acfc2d5308
set default value from dict
2014-02-20 22:36:42 -08:00
Paul Ivanov
3b109de563
minimal KernelList
2014-02-20 17:37:46 -08:00
Brian E. Granger
4bd315bda0
Merge pull request #5147 from minrk/static-url-version
...
Some template URL changes
2014-02-20 17:05:09 -08:00
Paul Ivanov
b3c1164798
put Running tab on the page
2014-02-20 17:01:51 -08:00
Brian E. Granger
db4960769b
Merge pull request #5100 from minrk/base_kernel_url
...
remove base_kernel_url
2014-02-20 17:00:38 -08:00
Jonathan Frederic
ad03225cf6
Audit .html() calls take #2
2014-02-20 15:46:44 -08:00
Jonathan Frederic
82bbcf166d
Fixed .. typo
2014-02-20 13:14:37 -08:00
Jonathan Frederic
0e56051a01
Added parentheses to emphasize order of op.
2014-02-20 08:48:05 -08:00
Jonathan Frederic
0eebd9e05b
Added msg_throttle sync=True widget traitlet
2014-02-20 08:41:05 -08:00
Jonathan Frederic
cecf7cf06f
Fixed radio button selector for new radio button class
2014-02-19 14:48:21 -08:00
Jonathan Frederic
d1d863af86
fab css
2014-02-19 14:14:14 -08:00
Jonathan Frederic
3b8beec541
Added a class for RadioButtons container
...
with appropriate top padding...
2014-02-19 14:14:14 -08:00
Jonathan Frederic
033ea6d88c
Added bottom margin to text widget
2014-02-19 14:14:14 -08:00
Min RK
41275b062a
Merge pull request #5089 from rgbkrk/azure_out
...
Remove legacy azure nbmanager
2014-02-19 11:42:20 -08:00
Paul Ivanov
efc01b8854
remove append_json reference
...
we never had such a method
2014-02-18 23:41:10 -08:00
Paul Ivanov
7b5c834649
fix IPython typo, closes #5155
2014-02-18 21:10:25 -08:00
MinRK
69cba774d9
Some template static_url tweaks
...
- don't try to include version in static_urls that don't point to files
- use full static_urls (with extension) for backbone and underscore, so version can be computed
closes #5141
2014-02-18 14:09:56 -08:00
Jonathan Frederic
a7fb5e1e55
Merge pull request #5114 from minrk/empty-button
...
use non-breaking space for button with no description
2014-02-17 08:37:08 -08:00
MinRK
e91ef370dd
remove no-op adding abbreviations from always-empty dict
2014-02-16 15:17:23 -08:00
MinRK
8a2d92010a
set default value from signature defaults in interact
...
If available, use the default value from the signature for the initial condition,
when using range/choice abbreviations.
Not affected:
- single-value abbreviations (`@interact(a=5)` sets `a=5`)
- explicit Widgets
2014-02-16 15:11:39 -08:00
MinRK
ea8896399b
remove application/pdf->pdf transform in javascript
...
We have the old transforms because they were added before we realized it was a bad idea. We should not add new ones.
2014-02-15 13:21:37 -08:00
Thomas Kluyver
d6986cf4ec
Merge pull request #4778 from minrk/install-nbextensions
...
add APIs for installing notebook extensions
2014-02-14 15:21:15 -08:00
MinRK
1ed5b184fb
test installing nbextensions with symlink
2014-02-14 15:02:02 -08:00
MinRK
8353e85e48
test check_nbextension
2014-02-13 19:46:36 -08:00
MinRK
e903297a15
clarify with all in check_nbextension
2014-02-13 19:38:16 -08:00
MinRK
475ac234b4
typo
2014-02-13 19:37:57 -08:00
Thomas Kluyver
df0743c41c
Merge pull request #5097 from minrk/logging-some-more
...
minor notebook logging changes
2014-02-13 17:26:01 -08:00
MinRK
59d3a8ff5f
handle empty string in ToggleButtonsWidget
2014-02-13 11:08:45 -08:00
MinRK
9c452998ea
add utils.escape_html
2014-02-13 11:08:44 -08:00
MinRK
0eff2bb651
handle space-only strings, not just zero-length
2014-02-13 11:08:44 -08:00
MinRK
c50096334c
use non-breaking space for button with no description
...
to preserve button's size
reverses some inappropriate replacements of .html with .text.
closes #5113
2014-02-13 11:08:44 -08:00
MinRK
fd346d1790
fix remove event in KeyboardManager.register_events
...
only call enable on remove when focused.
fixes a bug where command mode could be entered inappropriately
when non-focused elements are removed from the page
(see first `@interact` example).
2014-02-13 10:51:33 -08:00
Min RK
3306e386d6
Merge pull request #4925 from khinsen/notebook-manager-api
...
Notebook manager API fixes
remove various `_model` suffixes
2014-02-12 21:36:47 -08:00
MinRK
a1e263785c
band-aid for completion
...
Unlike @Carreau's attempt at using proper CodeMirror completion,
this is just a band-aid to get the existing completion back to working for 2.0.
This adds a keypress handler on the completer,
which then calls insert with the charCode of the key press event,
replacing the final `elif` branch of the keydown handler.
This cannot be done with keydown,
since keydown doesn't know what character is incoming,
only the hardware key that is struck.
2014-02-12 17:21:40 -08:00
Kyle Kelley
c9adc812bf
Remove remaining refs to the Azure NB Manager
2014-02-12 14:18:04 -07:00
MinRK
a184724bdb
remove base_kernel_url
2014-02-11 21:26:10 -08:00
MinRK
e5df456949
minor notebook logging changes
...
log refer only on 4XX, and never log user agent
This function was ported from nbviewer, and some of the choices were not quite right for the notebook server.
2014-02-11 15:33:07 -08:00
Brian E. Granger
24c27ce5e5
Merge pull request #5059 from jdfreder/widgets-patch-fix
...
Fix incorrect `Patch` logic in widget code
2014-02-11 14:51:53 -08:00
Brian E. Granger
46c88a8875
Merge pull request #5075 from jdfreder/flex-model-2
...
More flexible box model fixes
2014-02-11 14:41:11 -08:00
Konrad Hinsen
4058786dcd
Print a warning when iptest is run from the IPython source directory
2014-02-11 19:15:28 +01:00
Konrad Hinsen
fdb8ab37ae
Rearrange the NotebookManager methods for clarity
...
Methods are organized into three categories:
- Methods that must be implemented in subclasses
- Methods that have default implementations, but can
be overridden if required.
- Support methods meant to be called by methods in subclasses
2014-02-11 12:30:19 +01:00
Konrad Hinsen
b1c6ba2c97
Move method increment_filename from FileNotebookManager to NotebookManager
...
The implementation requires only a minor change (call notebook_exists
rather than checking for file existence) to be universally usable
in other notebook managers.
2014-02-11 12:26:57 +01:00