I am new to VS Code and I am moving code over from jupyter notebook. I have two files, one with all the functions and one calling the functions. In the functions file I have this code:
def streamPosts(connection, cursor, subreddit, blacklist = None, ticker_list = None):
Do Something
if __name__ == '__main__':
streamComments(connection, cursor, subreddit, blacklist, ticker_list)
In jupyter notebook this code runs fine and the code in VS Code that calls this file also work fine but I am wondering why this code is causing errors by saying they are not defined. I understand that I have not created the variables since I do that in the other file but should VS Code recognize this?
Thanks.