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

File metadata

File hashes

Hashes for jupyter_nb_double_quote_to_single_quote-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b16e63c4ef50ed9f126f4e517b53e656fe0f95052295a4278be8b437f94d4077
MD5 010821db951a19424f0843a768b9dc86
BLAKE2b-256 c1ef97b7755ca9c5a2b519e0cc33df5339046b1c57cd78564bec92eb8f188e9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jupyter_nb_double_quote_to_single_quote-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 788cebc9b5327f6f247be608b077a76124c0b31906efb9dd995a90c1eb2767f1
MD5 3834998e60b9e45f73a428a46188ddc5
BLAKE2b-256 ad808c9a336986745506a426f6aade2bbad44539dfc92bddf16c91f15230fee1

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