Skip to content

Commit

Permalink
Fix anywidget deprecation warning (#3364)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmmease authored Mar 15, 2024
1 parent 89b717c commit 60622e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions altair/jupyter/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import lodashDebounce from "https://esm.sh/[email protected]/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){
Expand Down Expand Up @@ -225,4 +225,6 @@ function trap(view, fn) {
view.error(error);
}
};
}
}

export default { render }

0 comments on commit 60622e8

Please sign in to comment.