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


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


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:
    rev: <VERSION>
    -   id: jupyter-nb-double-quote-to-single-quote

See pre-commit for more instructions.


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

A significant portion of the code used in this tool comes from, in particular, the file 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

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