From 9cd03986ad79d7d8aeaf6aa279daa099e15bbcbd Mon Sep 17 00:00:00 2001 From: Ryuichi Arafune Date: Sun, 25 Feb 2024 14:02:40 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AC=20=20Try=20to=20use=20pydata=5Fsph?= =?UTF-8?q?inx=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: