Skip to content

Commit 681c8dd

Browse files
committed
address comments and related issues
1 parent 0fbd9cd commit 681c8dd

File tree

6 files changed

+25
-5
lines changed

6 files changed

+25
-5
lines changed

.github/workflows/rtd-link-preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
steps:
1414
- uses: readthedocs/actions/preview@v1
1515
with:
16-
project-slug: "pymc"
16+
project-slug: "causalpy"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ _build
77
build/
88
dist/
99
docs/_build/
10+
docs/build/
11+
docs/jupyter_execute/
1012
*.vscode
1113
.coverage
1214
*.jupyterlab-workspace

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pip install git+https://github.com/pymc-labs/CausalPy.git
3434

3535
```python
3636
import causalpy as cp
37-
37+
import matplotlib.pyplot as plt
3838

3939
# Import and process data
4040
df = (
@@ -57,6 +57,8 @@ fig, ax = result.plot();
5757

5858
# Get a results summary
5959
result.summary()
60+
61+
plt.show()
6062
```
6163

6264
## Roadmap

docs/source/conf.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,15 @@
7474

7575
# -- intersphinx config -------------------------------------------------------
7676
intersphinx_mapping = {
77-
"python": ("https://docs.python.org/3", None),
77+
"examples": ("https://www.pymc.io/projects/examples/en/latest/", None),
78+
"mpl": ("https://matplotlib.org/stable", None),
79+
"numpy": ("https://numpy.org/doc/stable/", None),
80+
"pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None),
7881
"pymc": ("https://www.pymc.io/projects/docs/en/stable/", None),
82+
"python": ("https://docs.python.org/3", None),
83+
"scikit-learn": ("https://scikit-learn.org/stable/", None),
84+
"scipy": ("https://docs.scipy.org/doc/scipy/", None),
85+
"xarray": ("https://docs.xarray.dev/en/stable/", None),
7986
}
8087

8188
# MyST options for working with markdown files.

docs/source/index.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,18 @@ A Python package focussing on causal inference for quasi-experiments. The packag
1212
Installation
1313
------------
1414

15-
To get the latest release:
15+
To get the latest release you can use pip:
1616

1717
.. code-block:: sh
1818
1919
pip install CausalPy
2020
21+
or conda:
22+
23+
.. code-block:: sh
24+
25+
conda install causalpy -c conda-forge
26+
2127
Alternatively, if you want the very latest version of the package you can install from GitHub:
2228

2329
.. code-block:: sh
@@ -31,6 +37,7 @@ Quickstart
3137
.. code-block:: python
3238
3339
import causalpy as cp
40+
import matplotlib.pyplot as plt
3441
3542
3643
# Import and process data
@@ -55,6 +62,8 @@ Quickstart
5562
# Get a results summary
5663
result.summary()
5764
65+
plt.show()
66+
5867
5968
Videos
6069
------

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ docs = [
5454
"ipykernel",
5555
"daft",
5656
"linkify-it-py",
57-
"myst-nb<=1.0.0",
57+
"myst-nb!=1.1.0",
5858
"pathlib",
5959
"sphinx",
6060
"sphinx-autodoc-typehints",

0 commit comments

Comments
 (0)