alpacahq / alpaca-py

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

Do not use "import *" in notebooks #460

Closed impredicative closed 3 months ago

impredicative commented 6 months 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