jupyter-autopep8

PEP8 formatter for Jupyter Notebook

Github星跟踪图

Jupyter autopep8 [PEP8 formatter for Jupyter Notebook]

This extension reformats/prettifies code in a notebook's code cell.
Under the hood, it uses the autopep8 Python module to reformat Python code to conform to the PEP 8 style guide.

pre-requisites: of course, you must have some of the corresponding packages installed:

pip install autopep8 [--user]

Then the extension provides

  • a toolbar button
  • a keyboard shortcut for reformatting the current code-cell (default: Ctrl-L)

Syntax shall be correct. The extension will also point basic syntax errors.

Installation

If you use jupyter-contrib-nbextensions, proceed as usual.

Otherwise, you can still install/try the extension from personal repo, using

jupyter nbextension install https://github.com/kenkoooo/jupyter-autopep8/archive/master.zip --user
jupyter nbextension enable jupyter-autopep8-master/jupyter-autopep8

Forked From

jfbercher/code_prettify

主要指标

概览
名称与所有者kenkoooo/jupyter-autopep8
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2016-10-13 09:27:38
推送于2018-04-13 10:49:50
最后一次提交2018-04-13 19:49:49
发布数0
用户参与
星数65
关注者数3
派生数6
提交数31
已启用问题?
问题数12
打开的问题数10
拉请求数2
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?