On-line Python compiler by w3schools is great but doesn't support user created files

On-line Python compiler by w3schools is great but doesn’t support user created files

Not to waste more time with Matplotlip and numpy crashing my Python 3.8
I visited w3schools for examples and great demos of use of Matplotlib

Unfortunately, user created files are not supported, so no way to test example from

If you know other website, supporting on-line Python compiler and user-created files, just let me know.
thank you

darius

I believe Python Anywhere does. Also search web for something line only python interpreter.

 A limited account with one web app at your-username.pythonanywhere.com, restricted outbound Internet access from your apps, low CPU/bandwidth, no IPython/Jupyter notebook support.
It works and it's a great way to get started! 

I just need to test some Python code and get data file read

‘’’

f = open(“myfile.txt”, “x”)

Traceback (most recent call last):
File “”, line 1, in
PermissionError: [Errno 13] Permission denied: ‘myfile.txt’

‘’’

files not supported

any other idea ?

Just need to test code from

Just tested few more online Python interpreters

‘’’
f = open(“myfile.txt”, “x”)

Traceback (most recent call last):
File “”, line 1, in
PermissionError: [Errno 13] Permission denied: ‘myfile.txt’

‘’’

https://replit.com/languages/python3

‘’’
f = open(“demofile3.txt”, “w”)
f.write(“Woops! I have deleted the content!”)
f.close()

#open and read the file after the overwriting:
f = open(“demofile3.txt”, “r”)
print(f.read())
‘’’

Woops! I have deleted the content!


supports files created but fails on Matplotlip


‘’’
import matplotlib.pyplot as plt
import numpy as np

xpoints = np.array([0, 6])
ypoints = np.array([0, 250])

plt.plot(xpoints, ypoints)
plt.show()
‘’’
-=-=
Matplotlib created a temporary config/cache directory at /tmp/matplotlib-flajz3hz because the default path (/config/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.

So GUI generally not supported by online Python interpreters