{"id":13567064,"url":"https://github.com/dnanhkhoa/nb_black","last_synced_at":"2025-05-16T18:09:02.258Z","repository":{"id":41281103,"uuid":"145418185","full_name":"dnanhkhoa/nb_black","owner":"dnanhkhoa","description":"A simple extension for Jupyter Notebook and Jupyter Lab to beautify Python code automatically using black.","archived":false,"fork":false,"pushed_at":"2023-07-28T14:20:59.000Z","size":25,"stargazers_count":367,"open_issues_count":24,"forks_count":40,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-12T16:58:51.306Z","etag":null,"topics":["black","black-beautifier","black-formatter","codeformatter","jupyter-notebook-extension","jupyter-notebook-formatter","jupyterlab-extension","yapf"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dnanhkhoa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-08-20T13:00:51.000Z","updated_at":"2025-04-12T14:19:26.000Z","dependencies_parsed_at":"2022-07-14T11:30:47.725Z","dependency_job_id":"bb6d8e9a-e2c1-4c4a-8e02-d90329b6b779","html_url":"https://github.com/dnanhkhoa/nb_black","commit_stats":{"total_commits":27,"total_committers":5,"mean_commits":5.4,"dds":0.2962962962962963,"last_synced_commit":"50c0f1bbfee53a7dfd76b00a6b0a5ac82a729386"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnanhkhoa%2Fnb_black","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnanhkhoa%2Fnb_black/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnanhkhoa%2Fnb_black/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnanhkhoa%2Fnb_black/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnanhkhoa","download_url":"https://codeload.github.com/dnanhkhoa/nb_black/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253929378,"owners_count":21985804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["black","black-beautifier","black-formatter","codeformatter","jupyter-notebook-extension","jupyter-notebook-formatter","jupyterlab-extension","yapf"],"created_at":"2024-08-01T13:02:22.768Z","updated_at":"2025-05-16T18:09:02.196Z","avatar_url":"https://github.com/dnanhkhoa.png","language":"Python","funding_links":[],"categories":["Python","Jupyter Magic","JupyterLab Extensions"],"sub_categories":[],"readme":"# nb_black\n\n[![PyPI](https://img.shields.io/pypi/v/nb_black.svg)](https://pypi.org/project/nb-black/)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/nb_black.svg)](https://pypi.org/project/nb-black/)\n\nA simple extension for Jupyter Notebook and Jupyter Lab to beautify Python code automatically using **[Black](https://github.com/psf/black)**.\n\nPlease note that since the **Black** package only supports Python 3.6+, so **[YAPF](https://github.com/google/yapf)** package will\nbe used for the lower versions. If you edit the code while running the cell, the formatting is\nnot submitted to the Jupyter notebook and instead silently suppressed, so you have to stick with\nthe edited, but unformatted code.\n\n## Installation\n\nYou can install this package using [pip](http://www.pip-installer.org):\n\n```\n$ [sudo] pip install nb_black\n```\n\n## Usage\n\nFor Jupyter Notebook:\n\n```\n%load_ext nb_black\n```\n\nFor Jupyter Lab:\n\n```\n%load_ext lab_black\n```\n\nJust put this code into the first cell in your Notebook, and that's all. :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnanhkhoa%2Fnb_black","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnanhkhoa%2Fnb_black","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnanhkhoa%2Fnb_black/lists"}