I have created a program by using altair library in .py file not in notebook. In this program the plot is plotted by using iris dataset between sepalWidth and petalWidth wit