python2jupyter icon indicating copy to clipboard operation
python2jupyter copied to clipboard

Conversion Issue: sbang & comment

Open ax3l opened this issue 5 years ago • 1 comments

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?

ax3l avatar Oct 30 '20 01:10 ax3l

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 :)

remykarem avatar Nov 17 '20 10:11 remykarem