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.2.tar.gz.

File metadata

File hashes

Hashes for jupyter_nb_double_quote_to_single_quote-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d6f953ebe8bdf82c25c42f1c2bf4f788e69cde147523287c4f4050b52f46fca9
MD5 1d974f34c487a654686c7f23f0ae1408
BLAKE2b-256 8212786dca866c93f34ab525f4820e9fa4324bab68397ba7ad1b3ab6fe2e6ca3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jupyter_nb_double_quote_to_single_quote-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ab0d2139b72f17cd0c35ea9b29486c575855bf18596e8fa47778848bb864e542
MD5 4205931b3c4dc9442be47730a61c33ca
BLAKE2b-256 dc04dc0367daef5624b26f73ba55f5b95950a9c5481c3d9f2b912890ff38d0e8

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