Created attachment 165322 [details] the python code drawing a sin curve using matplotlib SUMMARY *** NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports *** STEPS TO REPRODUCE 1. enter the python code 2. change the font of the code 3. first time, it works 4. reopen the file, and run the code again OBSERVED RESULT UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb9 in position 12: invalid start byte EXPECTED RESULT SOFTWARE/OS VERSIONS Windows: 10 macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION
(In reply to 249538789 from comment #0) > Created attachment 165322 [details] > the python code drawing a sin curve using matplotlib > > SUMMARY > *** > NOTE: If you are reporting a crash, please try to attach a backtrace with > debug symbols. > See > https://community.kde.org/Guidelines_and_HOWTOs/Debugging/ > How_to_create_useful_crash_reports > *** > > > STEPS TO REPRODUCE > 1. enter the python code > 2. change the font of the code > 3. first time, it works > 4. reopen the file, and run the code again > > OBSERVED RESULT > UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb9 in position 12: > invalid start byte I cannot reproduce this problem. In your file you put all commands into one single cell in the notebook. To try to understand which command exactly is causing that UnicodeDecodeError, can you please split your code into multiple cells (put import statements into one cell, assignments for x and y into the second cell and the plot commands into the third cell) and try again? For which cell are you getting this error?
Can you please check my previous comment and help with the steps to reproduce this problem?