A library to quickly import your default libraries in jupyter notebooks and python scripts.
pip install dimportImport dimport when you create a new notebook.
import dimportOn the first time cell execution, it will print the default imports.

Copy-paste the printed lines in your notebook and remove (or keep if you want!) the import dimport line. That's it!
Import dimport at the beginning of your script.
import dimportRun the script from the terminal. It will print the default imports.

Copy-paste the printed lines in your script and remove import dimport line. That's it!
Note: You can modify the default imports as per your needs!
When you import dimport for the first time after installation, it creates ~/.dimport directory and saves the default imports in the ~/.dimport/.default file. You can simply modify ~/.dimport/.default file to change your default imports as per your needs!