0

i know this has brought up quite a few times, but I'm actually having quite a funky issue. I am trying to run a python 3.9 notebook, but even if i don't write anything in the cells, i get an error message about encoding. In the past, i have had this issue with other versions of python, but to simply save the notebook, i would 'clear cells' then save it from there. but in python 3.9, i cant even do that.

enter image description here

I have tried encoding with creating a jupyter_notebook_config.py script in my home folder that contains:

enter image description here

but it still fails!

when i check the encoding of notebooks i have created, they are all like this: enter image description here

Tom Benson
  • 105
  • 1
  • 1
  • 8

1 Answers1

0

Looks like this might have happened once before, but it never got resolved.

Mine has absolutely no trouble reading and writing UTF-8 .ipynb files. The character it's complaining about is the "LEFT DOUBLE QUOTATION MARK" character, but I'd imagine it could be any character.

Can you check the log window/file for Jupyter Notebook (the NotebookApp stuff) to see if there's a stack trace? I only see two places where that particular error message might get thrown. There also aren't that many places where ascii appears in the code, and most of them involve base64 strings that should be ASCII anyway.

David A
  • 344
  • 1
  • 4