Skip to content

Commit

Permalink
💬 Try to use pydata_sphinx_theme
Browse files Browse the repository at this point in the history
  • Loading branch information
arafune committed Feb 25, 2024
1 parent e24ed8b commit 9cd0398
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 1 addition & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -459,5 +459,4 @@ xyzservices==2023.10.1
# via bokeh
# via panel

more_itertools
pyperclip
pydata-sphinx-theme
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ dev-dependencies = [
"pluggy",
"sphinx",
"sphinxcontrib-restbuilder",
"sphinx_rtd_theme",
"pydata-sphinx-theme",
"nbsphinx",
"sphinx_copybutton",
"sphinxnotes-strike",
Expand Down
7 changes: 6 additions & 1 deletion src/arpes/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 9cd0398

Please sign in to comment.