Skip to content

Commit

Permalink
Add quarto_setup stuff, w/ unneeded params handling
Browse files Browse the repository at this point in the history
  • Loading branch information
hugetim committed Oct 18, 2024
1 parent 9500899 commit 9938e6f
Show file tree
Hide file tree
Showing 6 changed files with 113 additions and 43 deletions.
39 changes: 36 additions & 3 deletions nbs/02_stata.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
"id": "6b79b383",
"metadata": {},
"source": [
"[https://www.stata.com/python/api17/Macro.html#sfi.Macro.setLocal](https://www.stata.com/python/api17/Macro.html#sfi.Macro.setLocal)"
"[https://www.stata.com/python/api17/Macro.html#sfi.Macro.getGlobal](https://www.stata.com/python/api17/Macro.html#sfi.Macro.getGlobal)"
]
},
{
Expand All @@ -153,6 +153,27 @@
" return sfi.Macro.getGlobal(name)"
]
},
{
"cell_type": "markdown",
"id": "092d242f",
"metadata": {},
"source": [
"[https://www.stata.com/python/api17/Macro.html#sfi.Macro.setGlobal](https://www.stata.com/python/api17/Macro.html#sfi.Macro.setGlobal)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "18638e7f",
"metadata": {},
"outputs": [],
"source": [
"#| export\n",
"def set_global(name):\n",
" import sfi\n",
" return sfi.Macro.setGlobal(name, value)"
]
},
{
"cell_type": "markdown",
"id": "fb3c1b96",
Expand Down Expand Up @@ -636,7 +657,7 @@
"0\n",
"Elapsed time: 0.0001 seconds\n",
"0\n",
"Elapsed time: 0.0585 seconds\n"
"Elapsed time: 0.0484 seconds\n"
]
}
],
Expand Down Expand Up @@ -1453,9 +1474,21 @@
],
"metadata": {
"kernelspec": {
"display_name": "python3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 9938e6f

Please sign in to comment.