Skip to main content

A package to convert jupyter notebooks to Stata do-files

Project description

jupyter-doexport

This packages provides a context menu and template for exporting a jupyter notebook with Stata kernel, to a do-file with all markdown and code ready to be executed at the Stata GUI or console.

To install the exporter, write:

pip install jupyter-doexport

Features

This package features two types of export, a regular script export to that you can then run in Stata, dofile, and one which also includes output from the notebook making it a sort of hybrid do-file/log, called dofile_output.

Your jupyter notebook should be available for export from the File -> Download as menu.

Alternatively, you can export your notebook from the commandline like so:

jupyter nbconvert --to [dofile/dofile_output] <name of file>

Currently, translation of stata_kernel magics are not supported.

Thanks also to

Kyle Barron for an amazing Stata kernel implementation. You can see how to install it here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyter-doexport-0.3.9.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

jupyter_doexport-0.3.9-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file jupyter-doexport-0.3.9.tar.gz.

File metadata

  • Download URL: jupyter-doexport-0.3.9.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.9 CPython/3.9.7 Linux/5.10.70-1-MANJARO

File hashes

Hashes for jupyter-doexport-0.3.9.tar.gz
Algorithm Hash digest
SHA256 fb402a9a00788df6aa99ae1b21663c7e1357337e04193319fe71f83a36229b83
MD5 73d06d549efb37f27ba8ff75c241b3b5
BLAKE2b-256 03bfb950e116d2d23f8c1f0985eed6d82bd73df63ab95569e33969555512321a

See more details on using hashes here.

File details

Details for the file jupyter_doexport-0.3.9-py3-none-any.whl.

File metadata

  • Download URL: jupyter_doexport-0.3.9-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.9 CPython/3.9.7 Linux/5.10.70-1-MANJARO

File hashes

Hashes for jupyter_doexport-0.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c5cdc3f0692545665c6a8d554710d69a2ee765ca0af0f2a9312fdbeb31d1c3d5
MD5 ff561dae637a079f8ac89b366211416d
BLAKE2b-256 6cfb43f5793751957b7683a1f113d440518baaf235125825f620d76b9b44e273

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page