From 9cd03986ad79d7d8aeaf6aa279daa099e15bbcbd Mon Sep 17 00:00:00 2001 From: Ryuichi Arafune Date: Sun, 25 Feb 2024 14:02:40 +0900 Subject: [PATCH 1/5] =?UTF-8?q?=F0=9F=92=AC=20=20Try=20to=20use=20pydata?= =?UTF-8?q?=5Fsphinx=5Ftheme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/requirements.txt | 3 +-- docs/source/conf.py | 4 ++-- pyproject.toml | 2 +- src/arpes/widgets.py | 7 ++++++- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index b706dc0a..4a4b8799 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -459,5 +459,4 @@ xyzservices==2023.10.1 # via bokeh # via panel -more_itertools -pyperclip +pydata-sphinx-theme diff --git a/docs/source/conf.py b/docs/source/conf.py index 6227d1db..67597965 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -56,7 +56,7 @@ def transform_rst_link(docname): "sphinx.ext.mathjax", "sphinxcontrib.restbuilder", # "sphinxcontrib.katex", - "sphinx_rtd_theme", + "pydata_sphinx_theme", "nbsphinx", "sphinx_copybutton", "sphinxnotes.strike", @@ -129,7 +129,7 @@ def setup(app): # HTML Configuration -html_theme = "sphinx_rtd_theme" +html_theme = ("sphinx_rtd_theme",) html_static_path = ["_static"] html_css_files = ["style.css"] html_logo = "_static/PyARPES-Logo.svg" diff --git a/pyproject.toml b/pyproject.toml index a7aa5b27..3f707f13 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ dev-dependencies = [ "pluggy", "sphinx", "sphinxcontrib-restbuilder", - "sphinx_rtd_theme", + "pydata-sphinx-theme", "nbsphinx", "sphinx_copybutton", "sphinxnotes-strike", diff --git a/src/arpes/widgets.py b/src/arpes/widgets.py index f1f6fd81..b7df7444 100644 --- a/src/arpes/widgets.py +++ b/src/arpes/widgets.py @@ -40,7 +40,6 @@ import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np -import pyperclip import xarray as xr from matplotlib import gridspec from matplotlib.axes import Axes @@ -598,6 +597,9 @@ def on_copy_settings(event: Event) -> None: Returns: [TODO:description] """ + + import pyperclip + pyperclip.copy(pprint.pformat(compute_parameters())) copy_settings_button = Button(ax_test, "Copy Settings") @@ -922,6 +924,9 @@ def on_copy_settings(event: Event) -> None: Returns: [TODO:description] """ + + import pyperclip + pyperclip.copy(pprint.pformat(_compute_offsets())) def apply_offsets(event: Event) -> None: From 0816eede8e8231b57e7a7ca48b016aded9d11783 Mon Sep 17 00:00:00 2001 From: Ryuichi Arafune Date: Sun, 25 Feb 2024 14:06:52 +0900 Subject: [PATCH 2/5] =?UTF-8?q?=F0=9F=8E=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/source/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 67597965..cc8e2b0d 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -129,7 +129,7 @@ def setup(app): # HTML Configuration -html_theme = ("sphinx_rtd_theme",) +html_theme = "pydata_sphinx_theme" html_static_path = ["_static"] html_css_files = ["style.css"] html_logo = "_static/PyARPES-Logo.svg" From f79cadce5978ebfcb2eb587ffc8fae4a3c2971c5 Mon Sep 17 00:00:00 2001 From: Ryuichi Arafune Date: Sun, 25 Feb 2024 14:11:13 +0900 Subject: [PATCH 3/5] =?UTF-8?q?=F0=9F=8E=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/source/conf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source/conf.py b/docs/source/conf.py index cc8e2b0d..683d916a 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -13,6 +13,7 @@ import arpes import arpes.config from arpes.io import example_data +from arpes.endstations.plugin.ALG_maini import ALGMainChamber from arpes.widgets import fit_initializer # -- Project information ----------------------------------------------------- From f6c8e36961f515e8d89eea90cc94d27eadb71ba2 Mon Sep 17 00:00:00 2001 From: Ryuichi Arafune Date: Sun, 25 Feb 2024 14:15:03 +0900 Subject: [PATCH 4/5] =?UTF-8?q?=F0=9F=8E=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/source/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 683d916a..bf6b3c0c 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -13,7 +13,7 @@ import arpes import arpes.config from arpes.io import example_data -from arpes.endstations.plugin.ALG_maini import ALGMainChamber +from arpes.endstations.plugin.ALG_main import ALGMainChamber from arpes.widgets import fit_initializer # -- Project information ----------------------------------------------------- From e2e9cf8878301019d127208f743e39761b3121fe Mon Sep 17 00:00:00 2001 From: Ryuichi Arafune Date: Sun, 25 Feb 2024 14:19:00 +0900 Subject: [PATCH 5/5] =?UTF-8?q?=F0=9F=8E=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 4a4b8799..1df64bb7 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -458,5 +458,5 @@ xarray==2024.2.0 xyzservices==2023.10.1 # via bokeh # via panel - +more_itertools pydata-sphinx-theme