Closed robertdefilippi closed 3 years ago
Hi @robertdefilippi, it should work once you change the import line to from uniplot import plot
.
So your whole file would be:
# foo.py
from uniplot import plot
import math
x = [math.sin(i / 20) + i / 300 for i in range(600)]
plot(x)
Does this help you?
Yup. Thanks for seeing the error in my code 😄
Hello,
This is an interesting project! Thank you for taking the time to put it together.
Quick question:
When testing out uniplot I'm able to call
.plot()
from the python console or through ipython, and get a visualization quite easily. However, it does not work when I includeuniplot
in a .py file and I execute the file.Is this expected behaviour, or am I missing something from the docs?
Thanks,