Skip to content
This repository was archived by the owner on Apr 15, 2022. It is now read-only.

kenkoooo/jupyter-autopep8

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

PEP8 formatter for Jupyter Notebook

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%