Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug rtd build #7385

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ build:
os: "ubuntu-22.04"
tools:
python: "mambaforge-4.10"
jobs:
post_install:
- mamba list
- which python
- python -m ipykernel install --user --name pymc-docs
1 change: 1 addition & 0 deletions conda-envs/environment-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dependencies:
- typing-extensions>=3.7.4
- threadpoolctl>=3.1.0
# Extra dependencies for docs build
- ipykernel
- ipython>=7.16
- jax
- jupyter-sphinx
Expand Down
8 changes: 5 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,13 @@
]

# myst config
default_kernel = "pymc-docs" if on_readthedocs else "python3"
nb_execution_mode = "force" if on_readthedocs else "off"
nb_execution_allow_errors = False
nb_execution_raise_on_error = True
nb_execution_allow_errors = True
nb_execution_raise_on_error = False
nb_execution_timeout = 300
nb_kernel_rgx_aliases = {".*": "python3"}
nb_kernel_rgx_aliases = {".*": default_kernel}
jupyter_execute_default_kernel = default_kernel
myst_enable_extensions = ["colon_fence", "deflist", "dollarmath", "amsmath", "substitution"]
myst_substitutions = {
"version_slug": rtd_version,
Expand Down
13 changes: 13 additions & 0 deletions docs/source/learn.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,16 @@ glossary
- {octicon}`plug;1em;sd-text-info` Experimental and cutting edge functionality: {doc}`pmx:index` library
- {octicon}`gear;1em;sd-text-info` PyMC internals guides (To be outlined and referenced here once [pymc#5538](https://github.com/pymc-devs/pymc/issues/5538)
is addressed)


```{jupyter-execute}
import inspect
import sys
import pymc as pm
print(sys.executable)
print(pm.__version__)
print(inspect.signature(pm.sample_prior_predictive))
print(inspect.getfile(pm))
print("\n\n")
print(inspect.getsource(pm))
```
20 changes: 20 additions & 0 deletions docs/source/learn/core_notebooks/pymc_overview.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,26 @@
":::"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "d39aad1a",
"metadata": {
"lines_to_next_cell": 2
},
"outputs": [],
"source": [
"import inspect\n",
"import sys\n",
"import pymc as pm\n",
"print(sys.executable)\n",
"print(pm.__version__)\n",
"print(inspect.signature(pm.sample_prior_predictive))\n",
"print(inspect.getfile(pm))\n",
"print(\"\\n\\n\")\n",
"print(inspect.getsource(pm))"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
5 changes: 4 additions & 1 deletion pymc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# locally installed pymc from PR 7385 should have this line


import logging

Expand Down Expand Up @@ -77,4 +79,5 @@ def __set_compiler_flags():
from pymc.variational import *
from pymc.vartypes import *

__version__ = _version.get_versions()["version"]
# __version__ = _version.get_versions()["version"]
__version__ = "1.16.0.rtd0"
Loading