Paul Ivanov
8889a7581c
start better keyboard handling
12 years ago
MinRK
3face719e8
setup jsversion
12 years ago
Brian E. Granger
30c500bfa9
Merge pull request #5292 from jdfreder/shift-enter-scroll
...
focus next cell on shift+enter
12 years ago
Jonathan Frederic
da334e782e
focus next cell on shift+enter
12 years ago
Min RK
0a37d7bfc5
Merge pull request #5232 from jdfreder/nbc_incono
...
Make nbconvert html full output like notebook's html.
12 years ago
Brian E. Granger
05e6fbade4
Merge pull request #5288 from minrk/start-idle
...
Correct initial state of kernel status indicator
12 years ago
Thomas Kluyver
80af3b4cfb
Merge pull request #4802 from ivanov/ui-docs
...
Tour of the notebook UI (was UI elements inline with highlighting)
12 years ago
MinRK
e901c9be33
Correct initial state of kernel status indicator
...
- start as busy, since we don't know
- send a kernel_info request once connections are established
- set idle on reply to the to the kernel_info request
12 years ago
Brian E. Granger
f62ce75a62
Lots of CSS tweaks to get nbconvert output looking right.
12 years ago
Jonathan Frederic
9c5bca99e2
addClass instead of adding extra_class arg everywhere
12 years ago
Jonathan Frederic
6169acfc6d
Fixed rebase issues
12 years ago
Jonathan Frederic
8b3c356c8d
Add extra_class arg to the rest of the append methods,
...
use new extra_arg to add output_pyout class
12 years ago
Jonathan Frederic
b92ede2800
Added output_pyerr to python error output
12 years ago
Brian E. Granger
1407b4347e
Merge pull request #5268 from ellisonbg/cmd-mode
...
Refactoring Notebook.command_mode
12 years ago
Paul Ivanov
610e66615e
added a note to what's new
12 years ago
Paul Ivanov
7974e32150
oops, <tt> went the way of the dodo, using <code>
12 years ago
Paul Ivanov
06e5858ee2
lower case names for keys
12 years ago
MinRK
7d87978a66
fix a typo introduced by a rebased PR
...
caused heading cells to appear in both rendered and unrendered state
12 years ago
Jonathan Frederic
de9b5b907e
Fab CSS
12 years ago
juhasch
72864cc83c
append Firefox overflow-x fix
12 years ago
Paul Ivanov
fdca0762a4
tidy up capitalization
12 years ago
Paul Ivanov
e10afab397
rewording according to feedback in #4802
12 years ago
Paul Ivanov
490e4d1e42
horizontally center menubar popup
12 years ago
Paul Ivanov
4371ebf625
fix vertical position of command mode tooltip
12 years ago
MinRK
54e1558c16
make trust notebook dialog a single paragraph
12 years ago
MinRK
8cd744db85
mention that Trust triggers reload
12 years ago
MinRK
9396619f9d
security.js docstrings
12 years ago
Brian E. Granger
4e0a2ee476
Make sure we are in command mode before we select a new cell.
12 years ago
MinRK
d5b0026cf1
trust via mark cells and save, rather than trust API request
12 years ago
MinRK
e7f3c05d28
remove unused get_attr_names
12 years ago
MinRK
6792d38215
log excluded untrusted output
12 years ago
MinRK
aaefc5f296
remove warning for stripped output
12 years ago
MinRK
b5c8a51331
disable trust notebook menu item on trusted notebooks
12 years ago
MinRK
1ae689f30c
Add Trust Notebook to File menu
12 years ago
MinRK
46665483ed
remove struct-returning sanitize
...
only keep str-str sanitization
12 years ago
MinRK
d4780c2cfc
remove security.is_safe
12 years ago
MinRK
d59e44a190
default to allow_css = false
12 years ago
MinRK
4d35660f3c
sanitize CSS
...
rather than removing it entirely
12 years ago
MinRK
5f7f1c51ec
remove unused security warning
12 years ago
MinRK
c49f04545a
don't use `result.safe` to communicate incomplete information
12 years ago
MinRK
028ce17c62
fix tagName comparison
12 years ago
MinRK
3897b1c39f
don't populate sanitized.safe by default
...
since it's potentially expensive.
walk nodes in is_safe
12 years ago
MinRK
6384502e47
sanitize untrusted HTML output
...
rather than checking is_safe
12 years ago
MinRK
3d0957c7bc
trust latex
...
If mathjax is insecure, we have big problems.
And we already trust mathjax in markdown cells,
so this is consistent.
12 years ago
MinRK
367b4f85c2
wrap caja.sanitizeAttribs to trust data-* attributes
12 years ago
MinRK
eec5d427a4
add cmp_tree, in case caja log can't be trusted
...
(spoiler: it can't)
12 years ago
MinRK
890c0be1dd
always sanitize markdown
...
don't check if it's safe or not
12 years ago
MinRK
2a0451fdde
use google-caja for sanitization
12 years ago
Brian E. Granger
07cdb1e195
Adding first round of security tests of is_safe.
12 years ago
Brian E. Granger
3b262912a1
Display safe HTML+SVG even if untrusted, but don't set trusted=1.
12 years ago
Brian E. Granger
31c9e08fa8
Don't render insecure Markdown and show warning.
12 years ago
Brian E. Granger
fa3f998295
Adding security.js with 1st attempt at is_safe.
12 years ago
Brian E. Granger
6f4263dc74
Removing conditionals that are not needed.
12 years ago
Brian E. Granger
e374ca5ebb
Refactoring Notebook.command_mode.
12 years ago
Brian E. Granger
92967c0baf
Addressing things in completer.js.
12 years ago
Brian E. Granger
af7dd15181
Removing old keyboard handling from IPython.utils.
12 years ago
Brian E. Granger
ec6ea72873
Adding utility functions.
12 years ago
Brian E. Granger
ff1492f8c9
Creating new base/js/keyboard.js
12 years ago
Jonathan Frederic
ede116bee7
Get cell after first conditional
12 years ago
Jonathan Frederic
479bc6b37a
Check down too.
12 years ago
Jonathan Frederic
bebe51c158
Don't allow edit mode up arrow to continue past index == 0
12 years ago
Paul Ivanov
1ce7d5ec80
tour: put the right arrow on the right side
12 years ago
Brian E. Granger
8c5b32c987
Merge pull request #5223 from minrk/tiny-images
...
use on-load event to trigger resizable images
12 years ago
Paul Ivanov
6d0d34d7ed
entering edit mode now requires focus_cell
12 years ago
Paul Ivanov
bdbf2fe9d5
more robust forward and back tour transitions
12 years ago
Paul Ivanov
ccf6128962
addressing Fernando's feedback
12 years ago
Paul Ivanov
95bd36be10
don't automatically advance the tour
12 years ago
Paul Ivanov
9d1595aebb
more refinement of the tour contents
12 years ago
Paul Ivanov
405017875e
tidy up and add to the tour
...
@takluyver found some typos which I fixed now
12 years ago
Paul Ivanov
d11d9b4830
tidying up the tour explanation of modes
12 years ago
Paul Ivanov
3a43d776c2
End tour via 'x' in upper right corner of window
12 years ago
Paul Ivanov
1ee52fcbbc
pause/play buttons for starting/stopping the tour
12 years ago
Paul Ivanov
5725bf80f5
use minified tour
12 years ago
Paul Ivanov
600facc92d
allow tour restarting
12 years ago
Paul Ivanov
abe4732aa0
fix typo in tour.js
12 years ago
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.
12 years ago
Paul Ivanov
d7b569390f
more work on the tour
12 years ago
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
12 years ago
MinRK
15fac2c1d6
make input_area css generic to cells
...
removes otherwise-identical text_cell_input class in text cells
12 years ago
MinRK
983271a36f
use on-load event to trigger resizable images
...
instead of timeout, which could get incorrect size information.
closes #5219
12 years ago
Brian E. Granger
88460cd212
Merge pull request #5175 from jdfreder/html-take2
...
Audit .html() calls take #2
12 years ago
Brian E. Granger
88fc1a0737
Merge pull request #5146 from jdfreder/modal-fix
...
Dual mode bug fixes.
12 years ago
Jonathan Frederic
39d39d0ea6
s/trigger_edit_mode/edit_mode
12 years ago
Jonathan Frederic
c41fe67da2
Re-added removed refresh
12 years ago
Jonathan Frederic
3bcee30e8c
Added comments to kbm and shrunk focus_cell lines
12 years ago
Jonathan Frederic
69e760841a
Move should cancel blur into codecell
12 years ago
Jonathan Frederic
4fdc99e111
Remove notebook load log succes
12 years ago
Jonathan Frederic
a6f883d7f2
Couple of whiteboard logic implementation misses
12 years ago
Jonathan Frederic
9451589e38
implemented whiteboard logic
12 years ago
Paul Ivanov
f8ab13b675
Merge pull request #5215 from ivanov/running-kernels
...
Dashboard "Running" Tab
12 years ago
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.
12 years ago
Paul Ivanov
eb4e674598
remove redundant checks in code
12 years ago
Paul Ivanov
14239c01e4
use explicit running header name + jquery's toggle
12 years ago
Jonathan Frederic
0884716a7d
Re-added widget textbox blur fix FF
12 years ago
Jonathan Frederic
bfc51c2a29
Final touches?
12 years ago
Jonathan Frederic
c5fb037e41
Reorg index and focus_editor params on edit_mode func
12 years ago
Jonathan Frederic
048ca30b0c
Remove fixes that are implemented correct in new CM
12 years ago
Brian E. Granger
e847a31348
Always refresh the CM editor upon TextCell unrender.
12 years ago
Jonathan Frederic
b976804051
Moved edit_mode canceling logic back into cell.
12 years ago
Jonathan Frederic
ff37fb7a36
Standardized comments and removed last logs
12 years ago
Jonathan Frederic
64ae25508d
Removed change that is no longer needed
12 years ago
Jonathan Frederic
70086d352f
s/unfocus/blur
12 years ago
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
12 years ago
Jonathan Frederic
3595c099c2
Fixed rebase problems
12 years ago
Jonathan Frederic
10d79a9102
Added cell unfocus event canceller API
12 years ago
Jonathan Frederic
a6aaa8a886
Use is_focused for element kbman removal event
12 years ago
Jonathan Frederic
6f7c502157
Fixed lots of bugs
...
Half overhaul of notebook focus events...
12 years ago
Jonathan Frederic
206d35a89e
DEBUG
...
Added lots of log calls and a couple small 'fixes' (attempts)
12 years ago
Jonathan Frederic
7913305312
jshint
12 years ago
MinRK
bdde544d47
don't forget base_url when updating address bar in rename
12 years ago
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.
12 years ago
Jonathan Frederic
6c1ef48f1a
Merge pull request #5173 from jdfreder/movewidgets
...
Moved widget files into static/widgets/*
12 years ago
Min RK
0117b587ab
Merge pull request #4985 from damianavila/closebrackets
...
Enable autoCloseBrackets in CodeMirror by default.
12 years ago
Paul Ivanov
a2b9c75e93
don't double-join the notebook path
12 years ago
Paul Ivanov
a27168ae3b
refresh of Notebook list should reload sessions
12 years ago
Paul Ivanov
af90cd8c62
fix typo in method name
12 years ago
Paul Ivanov
cb1bb62272
ok, Running tab is working now
12 years ago
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
12 years ago
Brian E. Granger
edb8d68331
Merge pull request #5132 from minrk/oops-pdf-transform
...
remove application/pdf->pdf transform in javascript
12 years ago
Jonathan Frederic
28423647a2
Updated require references to point to new files
12 years ago
Jonathan Frederic
e0ba52c802
Moved widget files into static/widgets/*
...
Since they do not depend on anything ntoebook related
12 years ago
Min RK
612acd2e08
Merge pull request #5170 from jdfreder/widget-throttle-trait
...
Added msg_throttle sync=True widget traitlet
12 years ago
Brian E. Granger
eda4569099
Merge pull request #5037 from jdfreder/ff-widget-align
...
FF Fix: alignment and scale of text widget
12 years ago
Jonathan Frederic
ef3f61f906
Use set_rendered to set the error msg of the cell.
12 years ago
Jonathan Frederic
946212d5fa
Treat set_rendered as unsafe.
12 years ago
Jonathan Frederic
407fc0a017
s/with with/with
12 years ago
Jonathan Frederic
6a224d131b
Move todos into set_rendered
12 years ago
MinRK
37cb0fbdee
remove websocket url
...
websockets should follow the kernel URL
(normal behavior is unchanged, only unused configurability is removed)
12 years ago
Paul Ivanov
3b109de563
minimal KernelList
12 years ago
Brian E. Granger
db4960769b
Merge pull request #5100 from minrk/base_kernel_url
...
remove base_kernel_url
12 years ago
Jonathan Frederic
ad03225cf6
Audit .html() calls take #2
12 years ago
Jonathan Frederic
0e56051a01
Added parentheses to emphasize order of op.
12 years ago
Jonathan Frederic
0eebd9e05b
Added msg_throttle sync=True widget traitlet
12 years ago
Jonathan Frederic
d1d863af86
fab css
12 years ago
Jonathan Frederic
3b8beec541
Added a class for RadioButtons container
...
with appropriate top padding...
12 years ago
Jonathan Frederic
033ea6d88c
Added bottom margin to text widget
12 years ago
Paul Ivanov
efc01b8854
remove append_json reference
...
we never had such a method
12 years ago
Paul Ivanov
7b5c834649
fix IPython typo, closes #5155
12 years ago
Jonathan Frederic
a7fb5e1e55
Merge pull request #5114 from minrk/empty-button
...
use non-breaking space for button with no description
12 years ago
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.
12 years ago
Thomas Kluyver
d6986cf4ec
Merge pull request #4778 from minrk/install-nbextensions
...
add APIs for installing notebook extensions
12 years ago
MinRK
59d3a8ff5f
handle empty string in ToggleButtonsWidget
12 years ago
MinRK
9c452998ea
add utils.escape_html
12 years ago
MinRK
0eff2bb651
handle space-only strings, not just zero-length
12 years ago
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
12 years ago
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).
12 years ago
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.
12 years ago
MinRK
a184724bdb
remove base_kernel_url
12 years ago
Brian E. Granger
24c27ce5e5
Merge pull request #5059 from jdfreder/widgets-patch-fix
...
Fix incorrect `Patch` logic in widget code
12 years ago
Jonathan Frederic
1c564131c5
Fixed, set on recieve update triggering echos.
12 years ago
Jonathan Frederic
7b2787e508
Fixed typo
12 years ago
Jonathan Frederic
f4f2c92285
Keep a running diff instead of forcing a full state update
12 years ago
Jonathan Frederic
770d2bd3a0
Only send diff message if diff isn't corrupt.
...
Diff will corrupt if more then one model.set(...) call is made
before model.save (or view.touch() in our case).
12 years ago
Jonathan Frederic
5667947f9d
Revert "Let backbone get changed attrs"
...
This reverts commit 4dd4990ff146508894353e390601c659d2638ed3.
12 years ago
Jonathan Frederic
36b576b0bd
Let backbone get changed attrs
12 years ago
Jonathan Frederic
cd72883fc7
Revert "Fix incorrect usage of attrs"
...
This reverts commit 04aa0885bb143fd0409fe133ca572004ffa6dc0e.
12 years ago
Jonathan Frederic
0d80363240
Fix incorrect usage of attrs
12 years ago
Jonathan Frederic
04c38db197
fab css
12 years ago
Jonathan Frederic
81f37ab49f
Added align-start to widget container.
12 years ago
Jonathan Frederic
30e3ec1cc1
fab css
12 years ago
Jonathan Frederic
b7326707da
output_scroll can't be a vbox.
12 years ago
Jonathan Frederic
92da2088cd
fab css
12 years ago
Jonathan Frederic
59eb13d80d
Align-start widget subarea
12 years ago
Jonathan Frederic
af5b5cea7d
Revert "Change stretch to flex-start"
...
This reverts commit 774073116dd4195037c452d48f05b432bba38801.
12 years ago
Jonathan Frederic
6568dd5d71
Revert "fab css"
...
This reverts commit a45a2c0f2ae26e7b731dc54965a6b224a39454b4.
12 years ago
Jonathan Frederic
82a9adb3c8
fab css
12 years ago
Jonathan Frederic
ff14cabf7f
Change stretch to flex-start
12 years ago
Jonathan Frederic
184a0933df
fab css
12 years ago
Jonathan Frederic
aba9f7e9f8
Automatic width adjustment for flex0
12 years ago
Jonathan Frederic
2d367aa7ab
fab css
12 years ago
Jonathan Frederic
7ae028e01f
Corrected a lot of small misuses of the new flex model.
12 years ago
MinRK
8264362179
document utils.parse_url
12 years ago
MinRK
9629bce503
fix url encoding in services
...
At this point, zero attributes should be encoded URLs
12 years ago
MinRK
24e59106c0
add utils.parse_url
...
strip repeated '//' in url_path_join
12 years ago
MinRK
a93040e810
s/get_data/get_body_data/
12 years ago
MinRK
e7db8cfd4e
fix notebook_path in menu bar
12 years ago
MinRK
e1e0b19a6a
s/base_project_url/base_url/
...
deprecate NotebookApp.base_project_url
12 years ago
MinRK
24703985e9
only add .ipynb if extension is not included
...
prevents .ipynb.ipynb double extension
12 years ago
MinRK
61b06a39e2
holy crap, semicolons
12 years ago
MinRK
13fc9022d9
various unicode fixes
...
- remove notebookPath, notebookName, and baseProjectUrl methods everywhere
- use base_project_url *attributes* instead
- we should never use escaped URLs except when making an actual request
Should fix issues with double-escaping
12 years ago
MinRK
beaa75b416
add utils.get_data
...
for extracting *decoded* items from $('body').data
12 years ago
MinRK
f3f1695b06
add IPython.load_extensions in js
12 years ago
Brian E. Granger
d3567f4cb0
Merge pull request #4920 from ellisonbg/pdf-formatter
...
Adding PDFFormatter and kernel side handling of PDF display data
12 years ago
Brian E. Granger
fc6b68a8aa
Merge pull request #5048 from ellisonbg/modal-indicator
...
Add edit/command mode indicator
12 years ago
Brian E. Granger
9b21f618e6
Merge pull request #5061 from minrk/execute-button
...
make execute button in menu bar match shift-enter
12 years ago
Brian E. Granger
22136b5e38
Merge pull request #5052 from ellisonbg/pager-q
...
Add q to toggle the pager.
12 years ago
MinRK
95d3d6de8b
fix flex: auto
...
flex: 0 doesn't seem to mean what box-flex meant (auto)
closes #5069
12 years ago
Brian E. Granger
5a087f2a66
To the most conservative choice.
12 years ago
Brian E. Granger
31301c4194
Just close the pager with q, not toggle.
12 years ago
Brian E. Granger
4e37e901d8
Add q to toggle the pager.
12 years ago
MinRK
24ef1be736
make execute button in menu bar match shift-enter
...
Noticed this when testing the UI on the IPad.
I expected the button to perform the default execute behavior,
but it doesn't.
12 years ago
Thomas Kluyver
2d973d2b14
Merge pull request #5051 from jdfreder/ff-hscroll2
...
FF Fix: code cell missing hscroll (2)
12 years ago
Jonathan Frederic
b5d772eb65
fab css
12 years ago
MinRK
7032e9ef69
set overflow-x: hidden on Firefox only
...
workaround crazy Firefox-only behavior when selecting newlines
closes #3549
Conflicts:
IPython/html/static/style/style.min.css
12 years ago
Jonathan Frederic
33586b7ac8
Convert tabs to spaces
12 years ago
Brian E. Granger
445f6225e8
Spinning sun + nothing for command mode.
12 years ago
Brian E. Granger
2b4559513d
Adding basic append_pdf in OutputArea.
12 years ago
Jonathan Frederic
cbffa6433f
fab css
12 years ago
Jonathan Frederic
66c14d34ce
New 'flex' support
...
http://dev.w3.org/csswg/css-flexbox/
https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Flexible_boxes
12 years ago
Jonathan Frederic
5e5aecb4c2
Revert #3552
12 years ago