From 2ce7d0458e11d38697be5b10365fa6ec0e97e771 Mon Sep 17 00:00:00 2001 From: Alexander Druz Date: Thu, 11 Jul 2024 14:41:29 +0200 Subject: [PATCH 1/5] Debug workflows --- .github/workflows/ci.yml | 2 +- .github/workflows/pr.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b0b2e9a..73275253 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ on: # As long as we use local actions, checkout should be made in workflow before # and not in the local actions. Otherwise, no action file found. # Checkout with `fetch-depth: 0` is needed by `poetry-dynamic-versioning` to get -# the right package version. +# the right package version. debug jobs: # Prepare stage diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 378ca9fb..9c5194b9 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -3,7 +3,7 @@ name: Pull request on: pull_request jobs: - # Comment + # Comment. debug comment-gui-screenshots: name: '🖍 Comment GUI screenshots' if: github.event.pull_request.head.repo.full_name == 'Renumics/spotlight' From e873cb8e40a5396766ab97fb953ea2ac5574722e Mon Sep 17 00:00:00 2001 From: Alexander Druz Date: Thu, 11 Jul 2024 14:45:57 +0200 Subject: [PATCH 2/5] Lock Python env --- poetry.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poetry.lock b/poetry.lock index d6575429..9c79a77b 100644 --- a/poetry.lock +++ b/poetry.lock @@ -7319,10 +7319,10 @@ test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", [extras] all = ["cleanlab", "cleanvision", "pycatch22"] -analyse = ["cleanlab", "cleanvision"] +analysers = ["cleanlab", "cleanvision"] descriptors = ["pycatch22"] [metadata] lock-version = "2.0" python-versions = ">=3.8, <3.12" -content-hash = "0a7daff624a72dbb9c5db7af5c94cfadcae171fb4b5f4849d1bf3d4356fbd790" +content-hash = "d261f1118fe27ab2f4649265e63fe42a5e4dc53fd0c26645c846d0186a5f02f8" From 0b824ce060c0fe388b971ab65a3dbbacfb697e5d Mon Sep 17 00:00:00 2001 From: Alexander Druz Date: Thu, 11 Jul 2024 14:46:18 +0200 Subject: [PATCH 3/5] Remove no-op text from workflows --- .github/workflows/ci.yml | 2 +- .github/workflows/pr.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73275253..0b0b2e9a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ on: # As long as we use local actions, checkout should be made in workflow before # and not in the local actions. Otherwise, no action file found. # Checkout with `fetch-depth: 0` is needed by `poetry-dynamic-versioning` to get -# the right package version. debug +# the right package version. jobs: # Prepare stage diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 9c5194b9..ee0d8ca0 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -3,7 +3,7 @@ name: Pull request on: pull_request jobs: - # Comment. debug + # Comment. comment-gui-screenshots: name: '🖍 Comment GUI screenshots' if: github.event.pull_request.head.repo.full_name == 'Renumics/spotlight' From 008de75ab838e65e4495ef7bd9e64df29d749b0f Mon Sep 17 00:00:00 2001 From: Alexander Druz Date: Thu, 11 Jul 2024 14:57:19 +0200 Subject: [PATCH 4/5] Add `trust_remote_code=True` to a Hugging Face REPL example --- renumics/spotlight/viewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renumics/spotlight/viewer.py b/renumics/spotlight/viewer.py index ea87110f..110201b7 100644 --- a/renumics/spotlight/viewer.py +++ b/renumics/spotlight/viewer.py @@ -36,7 +36,7 @@ Serving a Hugging Face dataset: >>> import datasets >>> from renumics import spotlight - >>> ds = datasets.load_dataset("mnist", split="test") + >>> ds = datasets.load_dataset("mnist", split="test", trust_remote_code=True) >>> viewer = spotlight.show(ds, port=5000, no_browser=True, wait=False) Spotlight running on http://127.0.0.1:5000/ >>> spotlight.close() From 2abd59620dfa36ebbce3e17db1dc0acf6b4db91b Mon Sep 17 00:00:00 2001 From: Alexander Druz Date: Thu, 11 Jul 2024 15:16:04 +0200 Subject: [PATCH 5/5] Remove no-op changes --- .github/workflows/pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index ee0d8ca0..378ca9fb 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -3,7 +3,7 @@ name: Pull request on: pull_request jobs: - # Comment. + # Comment comment-gui-screenshots: name: '🖍 Comment GUI screenshots' if: github.event.pull_request.head.repo.full_name == 'Renumics/spotlight'