python2jupyter icon indicating copy to clipboard operation
python2jupyter copied to clipboard

Convert from Python script to Jupyter notebook and vice versa

Results 11 python2jupyter issues
Sort by recently updated
recently updated
newest added

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...

bug

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 ![image](https://user-images.githubusercontent.com/58843833/91047520-d509cb00-e637-11ea-9bd4-f26719deca9f.png)

bug

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...

wontfix

Doesn't support converting multiple files at once

enhancement

## 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...