suppose a jupyter file has several imports
import sys
import pandas as pd
import p1
import p2
however suppose p2 is never used and I want to remove it. The answer to the question for regular python scripts is here and several others. But jupyter files are not regular files so cleaning them up this way might not work. I could not find on how to do this
Question: How can I check for unused import like the example above in a python jupyterlab notebook?