An open API service indexing awesome lists of open source software.

https://github.com/ozlerhakan/pelikan

🦩 A Python tool to create comment-free Jupyter notebooks.
https://github.com/ozlerhakan/pelikan

jupyter jupyter-notebook jupyter-notebooks jupyterlab notebook python tool utility

Last synced: about 1 year ago
JSON representation

🦩 A Python tool to create comment-free Jupyter notebooks.

Awesome Lists containing this project

README

          

# Pelikan :flamingo:

Pelikan lets you convert notebooks to comment-free notebooks. In other words, It removes Python block and inline comments from source cells in order to point out only source code.

## How it works

```
$ pip install pelikan

$ pelikan --help
usage: pelikan [-h] --notebook NOTEBOOK --output OUTPUT

optional arguments:
-h, --help show this help message and exit
--notebook NOTEBOOK, -n NOTEBOOK
The notebook file we want to remove comments from
--output OUTPUT, -o OUTPUT
The name of the newly created comment-free notebook.

$ pelikan -n notebook_file.ipynb -o voila
$ ls
notebook_file.ipynb voila.ipynb
```

## LICENSE

MIT