remykarem / python2jupyter

Convert from Python script to Jupyter notebook and vice versa
MIT License
125 stars 32 forks source link

Conversion Issue: sbang & comment #12

Open ax3l opened 4 years ago

ax3l commented 4 years ago

Hi,

thank you for sharing this tool!

I encounter issues when converting this script with its pre-amble: https://github.com/openPMD/openPMD-api/blob/0.12.0-alpha/examples/2_read_serial.py

The header of the script reads:

#!/usr/bin/env python
"""
This file is part of the ABC.

Copyright 2018-2020 Authors
Authors: Axel Huebl
License: LGPLv3+
"""
import numpy as np

Somehow the comment This file is part of the ABC. is interpreted as code and the first two cells look like this:

#!/usr/bin/env python
"""
This file is part of the ABC.
Copyright 2018-2020 Authors
Authors: Axel Huebl
License: LGPLv3+
"""
import numpy as np

Have you seen this problem before or do you have recommendations on this?

remykarem commented 4 years ago

Hi, thank you for pointing out this bug. I don't have the time to look into this now as I'm busy with school. However, we welcome pull requests from you :)