Skip to content

Commit 65f3297

Browse files
Abimereki MuzaaleAbimereki Muzaale
authored andcommitted
conf.py
1 parent 6795376 commit 65f3297

3 files changed

Lines changed: 76 additions & 3 deletions

File tree

_config.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,32 @@ author: ADM
66
copyright: "2025"
77
logo: https://upload.wikimedia.org/wikipedia/commons/thumb/c/c3/Python-logo-notext.svg/230px-Python-logo-notext.svg.png
88

9+
# Sphinx configuration options directly in _config.yml
10+
sphinx:
11+
config:
12+
project: "Run Python"
13+
author: "ADM"
14+
release: "2025"
15+
extensions:
16+
- myst_parser
17+
- sphinx.ext.autodoc
18+
- sphinx.ext.napoleon
19+
- sphinx.ext.viewcode
20+
- sphinx.ext.todo
21+
- sphinx.ext.githubpages
22+
- sphinxcontrib.bibtex
23+
- sphinx_multitoc_numbering
24+
- myst_nb
25+
suppress_warnings:
26+
- etoc.toctree
27+
- epub.unknown_project_files
28+
- image.nonlocal_uri
29+
- ref.ref
30+
- myst.header
31+
- mystnb.exec
32+
html_theme: "sphinx_rtd_theme"
33+
epub_show_urls: "footnote"
34+
935
# Force re-execution of notebooks on each build.
1036
# See https://jupyterbook.org/content/execute.html
1137
execute:

conf.py

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Configuration file for the Sphinx documentation builder.
2+
3+
# -- Project information -----------------------------------------------------
4+
project = 'Run Python'
5+
author = 'ADM'
6+
release = '2025'
7+
8+
# -- General configuration ---------------------------------------------------
9+
extensions = [
10+
'myst_parser',
11+
'sphinx.ext.autodoc',
12+
'sphinx.ext.napoleon',
13+
'sphinx.ext.viewcode',
14+
'sphinx.ext.todo',
15+
'sphinx.ext.githubpages',
16+
'sphinxcontrib.bibtex',
17+
'sphinx_multitoc_numbering',
18+
'myst_nb'
19+
]
20+
21+
# Suppress specific warnings
22+
suppress_warnings = [
23+
'etoc.toctree',
24+
'epub.unknown_project_files',
25+
'image.nonlocal_uri',
26+
'ref.ref',
27+
'myst.header',
28+
'mystnb.exec'
29+
]
30+
31+
# -- Options for HTML output -------------------------------------------------
32+
html_theme = 'sphinx_rtd_theme'
33+
34+
# -- Options for EPUB output -------------------------------------------------
35+
epub_show_urls = 'footnote'
36+
37+
# -- Options for LaTeX output ------------------------------------------------
38+
latex_documents = [
39+
('index', 'book.tex', 'Run Python Documentation', 'ADM', 'manual'),
40+
]
41+
42+
# -- Additional options ------------------------------------------------------
43+
# You can add any additional Sphinx options here if needed.

notebooks.ipynb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,12 @@
4141
" \"sqlalchemy\", \"pydantic\", \"pytest\", \"coverage\", \"sphinx\", \"yfinance\"\n",
4242
"]\n",
4343
"\n",
44-
"# Install the packages\n",
45-
"run_command(f\"source {activate_script} && pip install \" + \" \".join(packages))\n",
44+
"# Split the packages into smaller batches\n",
45+
"batches = [packages[i:i + 10] for i in range(0, len(packages), 10)]\n",
46+
"\n",
47+
"# Install the packages in batches\n",
48+
"for batch in batches:\n",
49+
" run_command(f\"source {activate_script} && pip install \" + \" \".join(batch))\n",
4650
"\n",
4751
"# Install IRkernel for R\n",
4852
"run_command(f\"source {activate_script} && Rscript -e \\\"install.packages('IRkernel', repos='https://cloud.r-project.org/')\\\"\")\n",
@@ -52,7 +56,7 @@
5256
"run_command(f\"source {activate_script} && pip install stata_kernel\")\n",
5357
"run_command(f\"source {activate_script} && python -m stata_kernel.install\")\n",
5458
"\n",
55-
"print(\"Environment setup complete.\")"
59+
"print(\"Environment setup complete.\")\n"
5660
]
5761
},
5862
{

0 commit comments

Comments
 (0)