Skip to main content

Command line tool and pre-commit hook to convert double quotes to single quotes in Jupyter notebook code cells

Project description

jupyter-nb-double-quote-to-single-quote

Convert double quotes ("") to single quotes ('') in Jupyter notebook code cells

Installation

pip install jupyter-nb-double-quote-to-single-quote

As a command line tool

jupyter-nb-double-quote-to-single-quote my_notebook.ipynb

Use --help to see documentations of command line arguments.

As a pre-commit hook

Put the following into your .pre-commit-config.yaml file. Remember to replace <VERSION> with your version of this tool (such as v0.1.0):

-   repo: https://github.com/cyyc1/jupyter-nb-double-quote-to-single-quote
    rev: <VERSION>
    hooks:
    -   id: jupyter-nb-double-quote-to-single-quote

See pre-commit for more instructions.

Licenses

The license of this tool is MIT License. See the file LICENSE

A significant portion of the code used in this tool comes from https://github.com/pre-commit/pre-commit-hooks, in particular, the file string_fixer.py. As such, we added pre-commit-hooks' license as the original license (see the file ORIGINAL_LICENSE).

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

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file jupyter_nb_double_quote_to_single_quote-0.1.0.tar.gz.

File metadata

File hashes

Hashes for jupyter_nb_double_quote_to_single_quote-0.1.0.tar.gz
Algorithm Hash digest
SHA256 952378151ac2de70c97af38a967cb7eb73f87e7b282ff8c793b597c42573a303
MD5 58f9e3d5a53ec41ca80ed802384701cb
BLAKE2b-256 3359ec3fb700e1f9d639393882f59da91e1f948c6701c54ddf0edba1beb18727

See more details on using hashes here.

File details

Details for the file jupyter_nb_double_quote_to_single_quote-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_nb_double_quote_to_single_quote-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0b2001f74387244a7769779da7d088a2b6513bea410651b7af30f25450d9eeff
MD5 46bb6dbe89cc66763dc22456b8c72246
BLAKE2b-256 b501166d09b92ace89f52826fc6aebac72e565de1fba16b37708c50c2c229359

See more details on using hashes here.

Supported by

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