diff --git a/.binder/requirements.txt b/.binder/requirements.txt index cd8e02335f..34d78077a4 100644 --- a/.binder/requirements.txt +++ b/.binder/requirements.txt @@ -1,9 +1,11 @@ bqplot ipyleaflet jupyterlab-myst -jupyterlab==4.0.2 +jupyterlab==4.0.7 matplotlib +nbclassic networkx +notebook==7.0.5 numpy pandas scikit-image diff --git a/.yarnrc.yml b/.yarnrc.yml index 42586b8950..5dd084b809 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -11,3 +11,22 @@ packageExtensions: source-map-loader@^4: dependencies: webpack: ^5 + +enableTelemetry: false + +httpTimeout: 60000 + +# these messages provide no actionable information, and make non-TTY output +# almost unreadable, masking real dependency-related information +# see: https://yarnpkg.com/advanced/error-codes +logFilters: + - code: YN0006 # SOFT_LINK_BUILD + level: discard + - code: YN0007 # MUST_BUILD + level: discard + - code: YN0008 # MUST_REBUILD + level: discard + - code: YN0013 # FETCH_NOT_CACHED + level: discard + - code: YN0019 # UNUSED_CACHE_ENTRY + level: discard diff --git a/dev-install.sh b/dev-install.sh index d8e346c41c..c79fb448a1 100755 --- a/dev-install.sh +++ b/dev-install.sh @@ -1,7 +1,8 @@ #!/usr/bin/env bash - # For a clean conda environment please read docs/source/dev_install.md +set -x + echo -n "Checking pip... " pip --version if [ $? -ne 0 ]; then @@ -32,10 +33,13 @@ echo -n "widgetsnbextension" pip install -v -e ./python/widgetsnbextension if [[ "$OSTYPE" == "msys" ]]; then jupyter nbextension install --overwrite --py $nbExtFlags widgetsnbextension || true + jupyter nbclassic-extension install --overwrite --py $nbExtFlags widgetsnbextension || true else jupyter nbextension install --overwrite --py --symlink $nbExtFlags widgetsnbextension || true + jupyter nbclassic-extension install --overwrite --py --symlink $nbExtFlags widgetsnbextension || true fi jupyter nbextension enable --py $nbExtFlags widgetsnbextension || true +jupyter nbclassic-extension enable --py $nbExtFlags widgetsnbextension || true echo -n "ipywidgets" pip install -v -e "./python/ipywidgets[test]" diff --git a/packages/controls/src/widget_description.ts b/packages/controls/src/widget_description.ts index 40ea975278..2b0ccdcf7f 100644 --- a/packages/controls/src/widget_description.ts +++ b/packages/controls/src/widget_description.ts @@ -66,7 +66,19 @@ export class DescriptionView extends DOMWidgetView { } typeset(element: HTMLElement, text?: string): void { - this.displayed.then(() => typeset(element, text)); + this.displayed.then(() => { + if ((window as any).MathJax?.Hub?.Queue) { + return typeset(element, text); + } + const widget_manager: any = this.model.widget_manager; + const latexTypesetter = widget_manager._rendermime?.latexTypesetter; + if (latexTypesetter) { + if (text !== void 0) { + element.textContent = text; + } + latexTypesetter.typeset(element); + } + }); } updateDescription(): void {