How to Open and Run Python Files with UTF-8 Encoding in Jupyter Notebook?

16 Replies, 1408 Views

Hey! For jupyter-notebook open python with utf-8, I’d recommend using the `nbconvert` tool. It lets you convert notebooks to other formats, and you can specify encoding during the process.

Run:
`jupyter nbconvert --to script --output-dir . --output yourfile.py --encoding=utf-8`
This might help you avoid the gibberish issue.

Messages In This Thread



Users browsing this thread: 1 Guest(s)