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

File metadata

File hashes

Hashes for jupyter_nb_double_quote_to_single_quote-0.1.3.tar.gz
Algorithm Hash digest
SHA256 64a958042bf37ff611ca29dc0ea7a95c20ef8002bd848aba1240821fccb7d822
MD5 eb7a08fe22bb84a40128a9d38a4f5c11
BLAKE2b-256 80742ed732e0495dd5cd707802cd884f301f2a18df97f5f91988e2633f38880e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jupyter_nb_double_quote_to_single_quote-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 822bc559445b46e5c6ce4026a3b339b2f167277a63aa34f3c2c2169c59aa81a7
MD5 36b57d8a0cbce865d84c234d157cee33
BLAKE2b-256 a3ff29ef50d158fa102ab0a0a2e690780c188088ce2f0532979688e0d1c01950

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