diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9f5a322..7d9612f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - id: mypy args: [--strict, --explicit-package-bases] additional_dependencies: - - 'numpy' + - 'numpy<2' - 'ipython' - 'jinja2' - 'sqlalchemy-stubs' diff --git a/ipyprogressivis/widgets/chaining/any_vega.py b/ipyprogressivis/widgets/chaining/any_vega.py index 2fe3ad6..346563c 100644 --- a/ipyprogressivis/widgets/chaining/any_vega.py +++ b/ipyprogressivis/widgets/chaining/any_vega.py @@ -48,7 +48,7 @@ def initialize(self) -> None: ) self.c_.mode.observe(self._mode_cb, names="value") self.json_editor = pn.widgets.JSONEditor( - value={}, mode="form", width=600 # type: ignore + value={}, mode="form", width=600 ) self.json_editor.param.trigger("value") self.c_.editor = pn.ipywidget(self.json_editor) diff --git a/ipyprogressivis/widgets/chaining/csv_loader.py b/ipyprogressivis/widgets/chaining/csv_loader.py index 3a76da4..5b0ca76 100644 --- a/ipyprogressivis/widgets/chaining/csv_loader.py +++ b/ipyprogressivis/widgets/chaining/csv_loader.py @@ -98,7 +98,7 @@ def initialize(self) -> None: with open(file_) as f: content = js.load(f) # pn.extension('ace', 'jsoneditor', 'ipywidgets') # run it in a nb cell - self.json_editor = pn.widgets.JSONEditor(value=content, # type: ignore + self.json_editor = pn.widgets.JSONEditor(value=content, mode="form", width=600) self.json_editor.param.trigger("value")