From a2fa66869421a1266a6e3b27c5304ce0993388ea Mon Sep 17 00:00:00 2001 From: Jon Mease Date: Fri, 15 Mar 2024 07:15:40 -0400 Subject: [PATCH] Fix anywidget deprecation warning --- altair/jupyter/js/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/altair/jupyter/js/index.js b/altair/jupyter/js/index.js index 57e8aa800..a2e435941 100644 --- a/altair/jupyter/js/index.js +++ b/altair/jupyter/js/index.js @@ -6,7 +6,7 @@ import lodashDebounce from "https://esm.sh/lodash-es@4.17.21/debounce"; // the javascript_bundle function for details on the available imports and their names. // If an additional import is required in the future, it will need to be added to vl-convert // in order to preserve offline support. -export async function render({ model, el }) { +async function render({ model, el }) { let finalize; function showError(error){ @@ -225,4 +225,6 @@ function trap(view, fn) { view.error(error); } }; -} \ No newline at end of file +} + +export default { render }