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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?