Clean.jl

Command-line program for cleaning Julia files (.jl) and Jupyter notebooks (.ipynb) :broom: Official janitor of Google Colab :construction_worker:

When cleaning .ipynb, clean-jl removes empty cells, clears outputs, and formats code using JuliaFormatter.jl.

Use

clean-jl luffy.jl
clean-jl zoro.ipynb
clean-jl nami.jl usopp.ipynb
find -E . -regex ".*/*\.(jl|ipynb)" -type f -print0 | xargs -0 clean-jl

Install

git clone https://github.com/KwatMDPhD/Clean.jl &&

cd Clean.jl &&

julia --project --eval "using Pkg; Pkg.instantiate()" &&

julia --project deps/build.jl

:point_up: commands install clean-jl into ~/.julia/bin.

If not already, add the bin to the path by adding :point_down: to the profile (~/.zshrc, ~/.bashrc, ...)

PATH=~/.julia/bin:$PATH

Start a new shell to load the updated profile.

Test installation

clean-jl -h

:tada:


Howdy :wave: :cowboy_hat_face:

To report a bug, request a feature, or leave a comment, just submit an issue.


Powered by https://github.com/KwatMDPhD/PkgRepository.jl

Clean.jl

Command-line program for cleaning Julia files (.jl) and Jupyter notebooks (.ipynb) ๐Ÿงน Official janitor of Google Colab ๐Ÿ‘ท

Clean.jl Info

โญ Stars70
๐Ÿ”— Source Codegithub.com
๐Ÿ•’ Last Updatea year ago
๐Ÿ•’ Created4 years ago
๐Ÿž Open Issues1
โž— Star-Issue Ratio70
๐Ÿ˜Ž AuthorKwatMDPhD