python2jupyter
python2jupyter copied to clipboard
Convert from Python script to Jupyter notebook and vice versa
when i run p2j train.py it returns p2j train.py ^ SyntaxError: invalid syntax when i run p2j -h The result is as follows: Traceback (most recent call last): File "",...
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: ```py #!/usr/bin/env python """ This file...
In general, I am getting what I would expect which is very useful. However, functions are always a tricky one with jupyter notebook because (and correct me if I am...
My Env : > Python 3.8.5 
hi, if I have a directory with python file, I want to convert the all of the python files to the ipynb format. So I want to consult whether it...
```json ... "metadata": { "kernelspec": { "display_name": "my-virtualenv-python", "language": "python", "name": "my-virtualenv-python" } ... ... ``` Maybe this could be passed in with something like `-k my-virtualenv-python`. I'm new to...
## Description Fixed the `UnicodeDecodeError` issue in `p2j` when processing Python scripts with Chinese comments. Added an encoding parameter (default=“utf-8”) to handle character encoding. Resolves Issue #16. ## Usage Run...
## Description When running the `p2j` tool on a Python script (`mycode.py`) that contains Traditional Chinese comments, I encountered a `UnicodeDecodeError`. The error message indicates that the ‘cp950’ codec can’t...
Code is often formatted to 80 columns or some similar width. It would be nice to have a flag so that a word-wrapped comment block like ``` # The data...