How to prevent Google Colab from drawing yellow lines below module and function names even though they're defined/imported?

Viewed 18

I'm trying to import all libraries from one imports.py file located in the same directory as Colab notebook file. However, google colab doesn't recognize the defined functions and libraries in the imports.py even though it is imported and working properly.

How do I make google Colab recognize the imported functions as well as libraries and make yellow line disappear?

Code Snippets are below:

main.ipynb

from imports import *

today = str(date.today()) # i.e. 'date' is yellow marked

imports.py

...
from datetime import date
...
0 Answers
Related