mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
SVG: scoped is passed as metadata
Instead of using a svg class to pass scope information use notebook metadata. Suggested by Matthias Bussonnier
This commit is contained in:
parent
4c49abd2ae
commit
86dce97804
@ -498,7 +498,7 @@ var IPython = (function (IPython) {
|
||||
wrapper.append(svg);
|
||||
var svg_element = wrapper.children()[0];
|
||||
|
||||
if (svg_element.classList.contains('ipython-scoped')) {
|
||||
if (md['scoped']) {
|
||||
// To avoid style or use collisions between multiple svg figures,
|
||||
// svg figures are wrapped inside an iframe.
|
||||
var iframe = $('<iframe/>')
|
||||
|
Loading…
Reference in New Issue
Block a user