alpacahq / alpaca-py

The Official Python SDK for Alpaca API
https://alpaca.markets/sdks/python/getting_started.html
Apache License 2.0
491 stars 122 forks source link

Do not use "import *" in notebooks #460

Open impredicative opened 1 month ago

impredicative commented 1 month ago

Discussed in https://github.com/alpacahq/alpaca-py/discussions/451

Originally posted by **impredicative** May 8, 2024 In Python it is considered bad practice to use `from import *`. That's because the imported objects thne clutters the namespace, and it is not clear where the imports are coming from. This issue is manifest in the notebooks. The notebooks should be updated to use proper explicit imports, e.g. `from import foo, bar, etc` or `import `. @hiohiohio