michaelpacer
f3b4d16d14
fix typo(?) on the exception to edit application/javascript
9 years ago
michaelpacer
cd24d1ee92
add .tpl to set of editable extensions by notebook text editor
9 years ago
Min RK
5cafbfe822
Merge pull request #2005 from minrk/require-api-token
...
forward-port xsrf fixes
9 years ago
Kyle Kelley
4da035c577
Merge pull request #2009 from ellisonbg/md-max-width
...
Don't use max-width on tables in rendered markdown
9 years ago
Brian E. Granger
2ed20e4980
Don't use max-width on tables in rendered markdown
9 years ago
Min RK
2da82f909c
get xsrf from cookie, not body data
...
so that it can't be skimmed with a GET of the page
9 years ago
Min RK
9478a6b82b
use tornado xsrf token in API
...
- Cookie-authenticated API requests must use set X-XSRFToken header
- add utils.ajax for making ajax requests, adding xsrf header from default location
9 years ago
Min RK
374db739ad
Merge pull request #1965 from mgeier/proper-attachment-url
...
Use attachment:path instead of attachment://path
9 years ago
Jason Grout
935af43582
handle window sizing even when it is not from a resize event.
9 years ago
Jason Grout
e909afc93a
Due to jQuery propagating events, the window resize event could be triggered by a bubbled event.
...
See https://bugs.jquery.com/ticket/9841 . In our case, the OutputArea was triggering a ‘resize’ event on its element, which was bubbling up and causing this handler to execute every time an output was appended. This was a pretty big drain on output areas that quickly changed (like for interact widgets), presumably since this function involves a DOM read to get heights.
9 years ago
Min RK
a2f7325537
fix carriage return handling
...
The only real fix is an errant `+` on the final replacement, which would end up skipping sequential replacements.
- leaves trailing `\r` on the text, if there is one
- use groups to avoid unnecessary replace calls (no change)
- includes test
9 years ago
Matthias Geier
6a5e22e646
Use attachment:path instead of attachment://path
...
This partly reverts #1659 , see also #1655 .
9 years ago
Min RK
c05138a219
Merge pull request #1956 from jasongrout/fontsize
...
Make the font size more robust against fickle browser values.
9 years ago
Jason Grout
c3de744fe9
Return after error condition.
9 years ago
Jason Grout
66146cc265
Write the get_output_callback_id function that we use.
9 years ago
Jason Grout
5d84a55e4a
Add an output callback override stack
...
This allows us to override output callbacks to redirect output messages, and is used to implement the Output widget, for example. It does not redirect status messages or messages on other channels.
9 years ago
Jason Grout
e2c0b6b5b7
Fix a subtle async bug in processing comm messages.
...
Basically, message processing did not wait for any promises a comm message handler may return to resolve, because comms were not set up to resolve return values of message handlers.
9 years ago
Jason Grout
d376b35636
Make the font size more robust against fickle browser values.
...
Also change the line-height multiplier to 1.3, which is closer to what the CSS is (I think it is 1.21 something.)
Thanks to @williamstein and @haraldschilly for bringing this to our attention: https://github.com/sagemathinc/smc/issues/1262
We also re-enable auto scrolling for Firefox, since this might have been the issue.
9 years ago
Grant Nestor
19c9a791cc
Pass `options.index` to `OutputArea.register_mime_type` to set `display_order` index
9 years ago
Grant Nestor
a4744c696f
Expose `OutputArea.mime_types` to allow extensions to calculate `display_order` index
9 years ago
Min RK
316bfdbd1e
Catch and log handler exceptions in events.trigger
...
rather than throwing handler errors in the call to `.trigger()`
Extensions can register buggy event handlers.
These should not be able to cause failures in the event-triggering code paths.
This should fix several avenues where extensions (or other bugs) could prevent a notebook from loading.
9 years ago
Grant Nestor
8d66114992
Change max-width for tables to 150px
9 years ago
alexandercbooth
fd9cddd82a
chore(baseUrl): remove forward slash from path
9 years ago
alexandercbooth
cf37b9f145
[WIP] chore(baseUrl): add base_url to download_selected
9 years ago
Grant Nestor
bbec3d7cc1
Do not overwrite `OutputArea.trusted` on `Notebook.render_cell_output`
9 years ago
Grant Nestor
dca820e845
Improve `Notebook.render_cell_output`
9 years ago
Grant Nestor
6f929697f3
Add `Notebook.render_cell_output` method
9 years ago
Kyle Kelley
6df840e19d
Merge pull request #1879 from minrk/display_data_update
...
support routing updating outputs with display_id
9 years ago
Min RK
c0a6e41038
support display_id in execute_result
...
make update_display handling clearer and separate from regular display_data
9 years ago
Kyle Kelley
bdee765dd3
Merge pull request #1896 from gnestor/mime-json-suffix
...
Accept JSON output data with mime type "application/*+json"
9 years ago
Grant Nestor
8e0de400ae
Accept JSON output data with mime type "application/*+json"
9 years ago
Thomas Kluyver
78dc8a8c7a
Fix extending range selection down to markdown cell
...
The 'moveanchor' argument was not getting passed down to the parent
class' select() method.
Closes gh-1589
9 years ago
Thomas Kluyver
89c6f9e631
Merge pull request #1838 from yuvipanda/xterm-2.0.1
...
terminal: Bump xterm.js to 2.0.1
9 years ago
YuviPanda
ae5f345d35
Remove deprecated xterm.js constructor params
9 years ago
Min RK
bff750397c
clarify some variable names
9 years ago
Min RK
0c90391f8a
handle display-updates as updates
9 years ago
Min RK
a7a30c3bde
fix handling of display_id repeats in a single output area
9 years ago
Min RK
5b2279c192
support repeat displays with id
9 years ago
Min RK
f82f2568f5
Support update_display
9 years ago
Matthias Bussonnier
606b7377ae
Merge pull request #1866 from gnestor/register-mime-type
...
Add a `register_mime_type` method to OutputArea
9 years ago
Matthias Bussonnier
8d666c603f
Merge pull request #1863 from Carreau/rtl-action-toggle
...
Add a quick action to have the possibility to toggle rtl-layout.
9 years ago
Grant Nestor
4cf93c8c57
Add a `register_mime_type` method to OutputArea
9 years ago
Min RK
b058209984
strip default metadata in Cell.toJSON
...
avoids saving redundant default info in files
9 years ago
Min RK
61afdb7432
don't set default editable/deletable metadata
...
it fills notebooks with redundant flags
these should only be set if defined and not-default
9 years ago
Matthias Bussonnier
04a431a77e
Add a quick action to have the possibility to toggle rtl-layout.
9 years ago
Grant Nestor
795e267aab
Add hover styles to HTML table row
9 years ago
Min RK
0f05b2bf26
display_id comes from transient dict, not top-level
9 years ago
Min RK
30d3406f54
allow updating display_data messages in-place using display_id
9 years ago
Kyle Kelley
2456687a12
Merge pull request #1826 from minrk/cell-clears-callbacks
...
don’t clear callbacks for cell output until next execute
9 years ago
Thomas Kluyver
cb88603ff1
Merge pull request #1837 from gnestor/busy-favicon
...
Change favicon when busy
9 years ago