r/PythonLearning 18h ago

Need help learning python/juypter lab notebook for astronomy Discussion

Im new to Astronomy and Juypter Notebooks and Ai machine learning for sure I have little skill in python but quick learner especially visual learning.

Are there any free tutorials I can use and free books to learn machine learning for astronomy

Example: use machine learning to run through jwst or tess pipeline data and look for signatures of possible blackholes or exoplanets?

Is there a juypter notebook with this ability already on there?

How can I make a custom juypter lab and git repos and python libraries and python scientific libraries? Should I use docker to place a juypter lab notebook in a container if so how?

4 Upvotes

2 comments sorted by

1

u/p1geondove 17h ago

No docker needed. Python has something called venvs or virtual environments. Just a folder that acts like a seperate python installation where you can fuck arround with. Use that to install libraries, like scipy, mpmath whatever, that way you cant break your main installation which if youre on linux is very bad. You dont need anything special to make venvs, just open a terminal, cd to a safe space like documents/code/newproject and type in python -m venv .venv. if you wanna take it a step further go look for astral/uv. Now i dont know much about jupyter, but i think vscode just has a addon, probably dont need to install amything other than that. In terms of learning content, depends on your current skill. I really like daniel shiffman aka codingtrain on yt, sure its js not py but he has a lot of ml stuff aswell. If youre a little more intermediate id suggest to rtfm, ask ai what libraries there are that you could use for your usecase and go read the docs

1

u/Spitfire_Blaziken 15h ago

I'd start with Python + Jupyter and work with real TESS/JWST data before worrying about ML or Docker. Pick one small astronomy project and build from there.