I have made a script names libraries.py in which i have written
In my second script names script.py, I have written
The commands in the libraries is compiling well but why can not I use those imported libraries in another function.
import datetime as dt import numpy as np from netCDF4 import Dataset import matplotlib as plt import matplotlib.pyplot as pltI want to call this script from another script, just to get rid of typing these everytime.
In my second script names script.py, I have written
import libraries xvals = np.arange(-2, 1, 0.01)While compiling the second script using python script.py, it is showing error.
The commands in the libraries is compiling well but why can not I use those imported libraries in another function.