nbstata


Namenbstata JSON
Version 0.7.0 PyPI version JSON
download
home_pagehttps://github.com/hugetim/nbstata
SummaryJupyter kernel for Stata built on pystata
upload_time2023-10-05 00:46:41
maintainer
docs_urlNone
authorTim Huegerich
requires_python>=3.9
licenseGNU General Public License v3
keywords nbdev jupyter notebook python stata
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Welcome to nbstata
================

<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

`nbstata` is a [Jupyter
kernel](https://docs.jupyter.org/en/latest/projects/kernels.html) for
[Stata](https://www.stata.com/why-use-stata/) built on top of
[pystata](https://www.stata.com/python/pystata/index.html).

**[*For the User Guide, click
here.*](https://hugetim.github.io/nbstata/user_guide.html)**

## What is Jupyter?

[JupyterLab](https://jupyterlab.readthedocs.io/en/stable/getting_started/overview.html)
is a browser-based editor that allows you to combine interactive code
and results with
[Markdown](https://daringfireball.net/projects/markdown/basics) in a
single document (called a Jupyter notebook). It is open source and
widely used. Though it is named after the three core programming
languages it supports (Julia, Python, and R), it can be used with with a
wide variety of languages.

`nbstata` allows you to create Stata notebooks (as opposed to using
Stata within a *Python* notebook, which is a nice way to [embed Stata
commands within Python
code](https://www.stata.com/python/pystata/notebook/Example2.html) but
is needlessly clunky if you are working primarily with Stata).

<img align="center" width="650" src="https://github.com/kylebarron/stata_kernel/raw/master/docs/src/img/jupyter_notebook_example.gif">

### `nbstata` features

- [x] [Easy
  setup](https://hugetim.github.io/nbstata/user_guide.html#install)
- [x] Works with Stata 17+ (only).
- [x] Displays Stata output without the redundant ‘echo’ of (multi-line)
  commands
- [x] Autocompletion for variables, macros, matrices, and file paths
- [x] DataGrid widget with `browse`-like capabilities (e.g., interactive
  filtering)
- [x] Variable and data properties (`describe` and `e`/`return list`)
  available in a ‘contextual help’ side panel
- [x] Interactive/richtext help files accessible within notebook
- [x] `#delimit ;` interactive support (along with all types of
  comments)

### What can you do with Stata notebooks…

…that you can’t do with the [official Stata
interface](https://www.stata.com/features/overview/graphical-user-interface/)?

- Exploratory analysis that is both:
  - interactive
  - preserved for future reference/editing
- Present results in a way that interweaves:\[1\]
  - code
  - results (including graphs)
  - rich text:
    1.  lists
    2.  **Headings**
    3.  <img align="left" width="54" height="18.6" src="https://raw.githubusercontent.com/hugetim/nbstata/master/index_files/figure-commonmark/226326ec-1-image-2.png">
    4.  [links](https://hugetim.github.io/nbstata/)
    5.  math: $y_{it}=\beta_0+\varepsilon_{it}$

\[1\] Stata [dynamic
documents](https://www.stata.com/manuals/rptdynamicdocumentsintro.pdf)
can do this part, just with a less interactive workflow. (See also:
[markstat](https://grodri.github.io/markstat/),
[stmd](https://www.ssc.wisc.edu/~hemken/Stataworkshops/stmd/Usage/stmdusage.html),
and
[Statamarkdown](https://ssc.wisc.edu/~hemken/Stataworkshops/Statamarkdown/stata-and-r-markdown.html))
Using `nbstata` with
[Quarto](https://www.statalist.org/forums/forum/general-stata-discussion/general/1703835-ado-files-and-literate-programming)
instead gives you a similar workflow, with greater flexibility of
output.

## Contributing

`nbstata` is being developed using
[nbdev](https://nbdev.fast.ai/blog/posts/2022-07-28-nbdev2/#whats-nbdev).
The `/nbs` directory is where edits to the source code should be made.
(The python code is then exported to the `/nbdev` library folder.)

For more, see
[CONTRIBUTING.md](https://github.com/hugetim/nbstata/blob/master/CONTRIBUTING.md).

## Acknowledgements

Kyle Barron authored the original `stata_kernel` and Vinci Chow carried
that work forward for Stata 17, converting the backend to use
[pystata](https://www.stata.com/python/pystata/). `nbstata` was
originally derived from his
[pystata-kernel](https://github.com/ticoneva/pystata-kernel), but much
of the docs and newer features are derived directly from `stata_kernel`.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hugetim/nbstata",
    "name": "nbstata",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "nbdev jupyter notebook python stata",
    "author": "Tim Huegerich",
    "author_email": "hugetim@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f4/ab/73ce12493fe661254f1f520b3d755240c1ab06be53d18d3dd21a67aa9051/nbstata-0.7.0.tar.gz",
    "platform": null,
    "description": "Welcome to nbstata\n================\n\n<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->\n\n`nbstata` is a [Jupyter\nkernel](https://docs.jupyter.org/en/latest/projects/kernels.html) for\n[Stata](https://www.stata.com/why-use-stata/) built on top of\n[pystata](https://www.stata.com/python/pystata/index.html).\n\n**[*For the User Guide, click\nhere.*](https://hugetim.github.io/nbstata/user_guide.html)**\n\n## What is Jupyter?\n\n[JupyterLab](https://jupyterlab.readthedocs.io/en/stable/getting_started/overview.html)\nis a browser-based editor that allows you to combine interactive code\nand results with\n[Markdown](https://daringfireball.net/projects/markdown/basics) in a\nsingle document (called a Jupyter notebook). It is open source and\nwidely used. Though it is named after the three core programming\nlanguages it supports (Julia, Python, and R), it can be used with with a\nwide variety of languages.\n\n`nbstata` allows you to create Stata notebooks (as opposed to using\nStata within a *Python* notebook, which is a nice way to [embed Stata\ncommands within Python\ncode](https://www.stata.com/python/pystata/notebook/Example2.html) but\nis needlessly clunky if you are working primarily with Stata).\n\n<img align=\"center\" width=\"650\" src=\"https://github.com/kylebarron/stata_kernel/raw/master/docs/src/img/jupyter_notebook_example.gif\">\n\n### `nbstata` features\n\n- [x] [Easy\n  setup](https://hugetim.github.io/nbstata/user_guide.html#install)\n- [x] Works with Stata 17+ (only).\n- [x] Displays Stata output without the redundant \u2018echo\u2019 of (multi-line)\n  commands\n- [x] Autocompletion for variables, macros, matrices, and file paths\n- [x] DataGrid widget with `browse`-like capabilities (e.g., interactive\n  filtering)\n- [x] Variable and data properties (`describe` and `e`/`return list`)\n  available in a \u2018contextual help\u2019 side panel\n- [x] Interactive/richtext help files accessible within notebook\n- [x] `#delimit ;` interactive support (along with all types of\n  comments)\n\n### What can you do with Stata notebooks\u2026\n\n\u2026that you can\u2019t do with the [official Stata\ninterface](https://www.stata.com/features/overview/graphical-user-interface/)?\n\n- Exploratory analysis that is both:\n  - interactive\n  - preserved for future reference/editing\n- Present results in a way that interweaves:\\[1\\]\n  - code\n  - results (including graphs)\n  - rich text:\n    1.  lists\n    2.  **Headings**\n    3.  <img align=\"left\" width=\"54\" height=\"18.6\" src=\"https://raw.githubusercontent.com/hugetim/nbstata/master/index_files/figure-commonmark/226326ec-1-image-2.png\">\n    4.  [links](https://hugetim.github.io/nbstata/)\n    5.  math: $y_{it}=\\beta_0+\\varepsilon_{it}$\n\n\\[1\\] Stata [dynamic\ndocuments](https://www.stata.com/manuals/rptdynamicdocumentsintro.pdf)\ncan do this part, just with a less interactive workflow. (See also:\n[markstat](https://grodri.github.io/markstat/),\n[stmd](https://www.ssc.wisc.edu/~hemken/Stataworkshops/stmd/Usage/stmdusage.html),\nand\n[Statamarkdown](https://ssc.wisc.edu/~hemken/Stataworkshops/Statamarkdown/stata-and-r-markdown.html))\nUsing `nbstata` with\n[Quarto](https://www.statalist.org/forums/forum/general-stata-discussion/general/1703835-ado-files-and-literate-programming)\ninstead gives you a similar workflow, with greater flexibility of\noutput.\n\n## Contributing\n\n`nbstata` is being developed using\n[nbdev](https://nbdev.fast.ai/blog/posts/2022-07-28-nbdev2/#whats-nbdev).\nThe `/nbs` directory is where edits to the source code should be made.\n(The python code is then exported to the `/nbdev` library folder.)\n\nFor more, see\n[CONTRIBUTING.md](https://github.com/hugetim/nbstata/blob/master/CONTRIBUTING.md).\n\n## Acknowledgements\n\nKyle Barron authored the original `stata_kernel` and Vinci Chow carried\nthat work forward for Stata 17, converting the backend to use\n[pystata](https://www.stata.com/python/pystata/). `nbstata` was\noriginally derived from his\n[pystata-kernel](https://github.com/ticoneva/pystata-kernel), but much\nof the docs and newer features are derived directly from `stata_kernel`.\n",
    "bugtrack_url": null,
    "license": "GNU General Public License v3",
    "summary": "Jupyter kernel for Stata built on pystata",
    "version": "0.7.0",
    "project_urls": {
        "Homepage": "https://github.com/hugetim/nbstata"
    },
    "split_keywords": [
        "nbdev",
        "jupyter",
        "notebook",
        "python",
        "stata"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a66e1e6b8ab4d2c0c0e0f205460b3d08c8d6f740e2f9db43f021cea5244b2d33",
                "md5": "d1058c33a10786b3197e0fba8cd67f0c",
                "sha256": "7b0eb4f58ef6fd363bcd748075946148ed30ae046d982f12abae50f13b60ad97"
            },
            "downloads": -1,
            "filename": "nbstata-0.7.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d1058c33a10786b3197e0fba8cd67f0c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 184829,
            "upload_time": "2023-10-05T00:46:39",
            "upload_time_iso_8601": "2023-10-05T00:46:39.878672Z",
            "url": "https://files.pythonhosted.org/packages/a6/6e/1e6b8ab4d2c0c0e0f205460b3d08c8d6f740e2f9db43f021cea5244b2d33/nbstata-0.7.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f4ab73ce12493fe661254f1f520b3d755240c1ab06be53d18d3dd21a67aa9051",
                "md5": "cec424a372b9edea40173898d6d3afe0",
                "sha256": "26b5856e7a747106bd465e87a20e585576864ba4f0e2ed32e041d9e13ef3a09a"
            },
            "downloads": -1,
            "filename": "nbstata-0.7.0.tar.gz",
            "has_sig": false,
            "md5_digest": "cec424a372b9edea40173898d6d3afe0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 151663,
            "upload_time": "2023-10-05T00:46:41",
            "upload_time_iso_8601": "2023-10-05T00:46:41.290295Z",
            "url": "https://files.pythonhosted.org/packages/f4/ab/73ce12493fe661254f1f520b3d755240c1ab06be53d18d3dd21a67aa9051/nbstata-0.7.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-05 00:46:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hugetim",
    "github_project": "nbstata",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "nbstata"
}
        
Elapsed time: 0.12086s