jupyter-ijavascript-utils 1.8.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/vega.js +4 -2
package/package.json
CHANGED
package/src/vega.js
CHANGED
|
@@ -278,9 +278,11 @@ module.exports.embed = function embed(fn, options) {
|
|
|
278
278
|
if (!context) throw (Error('No display sent. Expected to be called within iJavaScript'));
|
|
279
279
|
const { $$: display, console: cellConsole } = context;
|
|
280
280
|
|
|
281
|
+
const cleanOptions = options || {};
|
|
282
|
+
|
|
281
283
|
const {
|
|
282
284
|
scripts = []
|
|
283
|
-
} =
|
|
285
|
+
} = cleanOptions;
|
|
284
286
|
|
|
285
287
|
display.async();
|
|
286
288
|
|
|
@@ -289,7 +291,7 @@ module.exports.embed = function embed(fn, options) {
|
|
|
289
291
|
const { spec } = VegaLite.compile(vegaMarkers.toSpec());
|
|
290
292
|
|
|
291
293
|
IJSUtils.htmlScript({
|
|
292
|
-
...
|
|
294
|
+
...cleanOptions,
|
|
293
295
|
data: spec,
|
|
294
296
|
scripts: [
|
|
295
297
|
...scripts,
|