What python based game engine would you recommend?
For some background info, I have been using python for school since 2024 but i'm still kinda grasping some aspects of it. For my school project, I have decided to create a video game. For context, the game is supposed to have a story aspect at first, but then after the story is completed, it is more free play. Like the player gets to walk around and interact with the world. I plan on having these world interactions being either connected to a crafting system or combat system. Currently I'm torn between using either pygame or pyglet.
Any advice on which engine I should use? Or any recommendations on a completely different game engine to use?
Just looking for some opinions!
/r/Python
https://redd.it/1mjw40b
For some background info, I have been using python for school since 2024 but i'm still kinda grasping some aspects of it. For my school project, I have decided to create a video game. For context, the game is supposed to have a story aspect at first, but then after the story is completed, it is more free play. Like the player gets to walk around and interact with the world. I plan on having these world interactions being either connected to a crafting system or combat system. Currently I'm torn between using either pygame or pyglet.
Any advice on which engine I should use? Or any recommendations on a completely different game engine to use?
Just looking for some opinions!
/r/Python
https://redd.it/1mjw40b
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Where do enterprises run analytic python code?
I work at a regional bank. We have zero python infrastructure; as in data scientists and analysts will download and install python on their local machine and run the code there.
There’s no limiting/tooling consistency, no environment expectations or dependency management and it’s all run locally on shitty hardware.
I’m wondering what largeish enterprises tend to do. Perhaps a common server to ssh into? Local analysis but a common toolset? Any anecdotes would be valuable :)
/r/Python
https://redd.it/1mk1vc7
I work at a regional bank. We have zero python infrastructure; as in data scientists and analysts will download and install python on their local machine and run the code there.
There’s no limiting/tooling consistency, no environment expectations or dependency management and it’s all run locally on shitty hardware.
I’m wondering what largeish enterprises tend to do. Perhaps a common server to ssh into? Local analysis but a common toolset? Any anecdotes would be valuable :)
/r/Python
https://redd.it/1mk1vc7
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
What I believe to be a minor change, caused my flask startup to break...can someone explain why?
The following are 2 rudimentary test pages. One is just a proof of concept button toggle. The second one adds toggleing gpio pins on my pi's button actions.
The first one could be started with flask run --host=0.0.0.0 The second requires: FLASK\_APP=app.routes flask run --host=0.0.0.0
from flask import Flask, render_template
app = Flask(__name__)
led1_state = False
led2_state = False
.route("/")
def index():
return render_template("index.html", led1=led1_state, led2=led2_state)
.route("/toggle/<int:led>")
def toggle(led):
global led1_state, led2_state
if led == 1:
led1_state = not led1_state
elif led == 2:
led2_state = not led2_state
return render_template("index.html", led1=led1_state, led2=led2_state)
/r/flask
https://redd.it/1mkbhyj
The following are 2 rudimentary test pages. One is just a proof of concept button toggle. The second one adds toggleing gpio pins on my pi's button actions.
The first one could be started with flask run --host=0.0.0.0 The second requires: FLASK\_APP=app.routes flask run --host=0.0.0.0
from flask import Flask, render_template
app = Flask(__name__)
led1_state = False
led2_state = False
.route("/")
def index():
return render_template("index.html", led1=led1_state, led2=led2_state)
.route("/toggle/<int:led>")
def toggle(led):
global led1_state, led2_state
if led == 1:
led1_state = not led1_state
elif led == 2:
led2_state = not led2_state
return render_template("index.html", led1=led1_state, led2=led2_state)
/r/flask
https://redd.it/1mkbhyj
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Friday Daily Thread: r/Python Meta and Free-Talk Fridays
# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
## How it Works:
1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.
## Guidelines:
All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.
## Example Topics:
1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.
Let's keep the conversation going. Happy discussing! 🌟
/r/Python
https://redd.it/1mkg85s
# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
## How it Works:
1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.
## Guidelines:
All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.
## Example Topics:
1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.
Let's keep the conversation going. Happy discussing! 🌟
/r/Python
https://redd.it/1mkg85s
Redditinc
Reddit Rules
Reddit Rules - Reddit
Setting up a Windows 2016 server to run a flask app
greetings,
I have a windows 2016 server that I’m having a real issue trying to setup to serve out a flask app. I’ve googled several “how tos” and they just don’t seem to work right. Can someone point me to an actual step by step tutorial on how to set it up? I need this running on a windows server due to having issues connecting Linux machines to a remote mmsql database server.
thanks
\------UPDATE--------
I abandoned the idea of running this on Windows and instead got it working on Linux. So much easier.
Thanks for the input.
/r/flask
https://redd.it/1mi71lg
greetings,
I have a windows 2016 server that I’m having a real issue trying to setup to serve out a flask app. I’ve googled several “how tos” and they just don’t seem to work right. Can someone point me to an actual step by step tutorial on how to set it up? I need this running on a windows server due to having issues connecting Linux machines to a remote mmsql database server.
thanks
\------UPDATE--------
I abandoned the idea of running this on Windows and instead got it working on Linux. So much easier.
Thanks for the input.
/r/flask
https://redd.it/1mi71lg
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
D Can LLMs Have Accurate World Models?
I have seen many articles (one example https://aiguide.substack.com/p/llms-and-world-models-part-1) stating that LLMs have no coherent/effective world models and because of this their accuracy is inherently limited. Can this obstacle be overcome, and if not why?
/r/MachineLearning
https://redd.it/1mkelg5
I have seen many articles (one example https://aiguide.substack.com/p/llms-and-world-models-part-1) stating that LLMs have no coherent/effective world models and because of this their accuracy is inherently limited. Can this obstacle be overcome, and if not why?
/r/MachineLearning
https://redd.it/1mkelg5
Substack
LLMs and World Models, Part 1
How do Large Language Models Make Sense of Their “Worlds”?
Django Learning Path 2025
Hello all,
my question is quite easy and hard at the same time: What would be an optimized learning path for learning Django in 2025?
In a future job opportunity I would be tasked with developing an existing Django project, also enhance features and do maintenance for an existing Netbox deployment + custom plugins.
My time constraints would allow for about an hour of learning per day for 4-5 months from now on.
I have some prior Python experience in a professional context, but more on the Flask and functions-framework side of life.
I'm happy about every useful tip, so thank you in advance!
/r/django
https://redd.it/1mka58y
Hello all,
my question is quite easy and hard at the same time: What would be an optimized learning path for learning Django in 2025?
In a future job opportunity I would be tasked with developing an existing Django project, also enhance features and do maintenance for an existing Netbox deployment + custom plugins.
My time constraints would allow for about an hour of learning per day for 4-5 months from now on.
I have some prior Python experience in a professional context, but more on the Flask and functions-framework side of life.
I'm happy about every useful tip, so thank you in advance!
/r/django
https://redd.it/1mka58y
Reddit
From the django community on Reddit
Explore this post and more from the django community
What are the benefits of UV's build backend?
Has anyone started using the newly stabilized build backend from UV? I'm seeing little discussion as to the benefits of it and am curious as to whether anyone has had tangible experiences with it.
/r/Python
https://redd.it/1mkkoj8
Has anyone started using the newly stabilized build backend from UV? I'm seeing little discussion as to the benefits of it and am curious as to whether anyone has had tangible experiences with it.
/r/Python
https://redd.it/1mkkoj8
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
What packages should intermediate Devs know like the back of their hand?
Of course it's highly dependent on why you use python. But I would argue there are essentials that apply for almost all types of Devs including requests, typing, os, etc.
Very curious to know what other packages are worth experimenting with and committing to memory
/r/Python
https://redd.it/1mk5sk8
Of course it's highly dependent on why you use python. But I would argue there are essentials that apply for almost all types of Devs including requests, typing, os, etc.
Very curious to know what other packages are worth experimenting with and committing to memory
/r/Python
https://redd.it/1mk5sk8
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Synchrotron - a pure python live audio engine!
Hello everyone! I've spent the past year working on Synchrotron \- a live audio engine I've been programming from the ground up in only Python. This mainly stems from being tired of everything live audio being written in JUCE/C/C++, and the usual response to "how do you make a synth in Python" being "just don't".
Sure, Python isn't as performant as other languages for this. But in exchange, it's incredibly modular and hackable! I aim to keep working on Synchrotron until it's an actual legitimate option for music production and production audio engines.
Frontend URL: https://synchrotron.thatother.dev/
Source code: https://github.com/ThatOtherAndrew/Synchrotron
# What My Project Does
Synchrotron processes nodes, which are simple Python classes that define some operation they do with inputs and outputs. A node can be as short as 5 lines, and an example is shown below:
class IncrementNode(Node):
input: StreamInput
output: StreamOutput
def render(self, ctx):
self.out.write(self.a.read(ctx) + 1)
These nodes can be spawned and linked together into a graph, either programmatically or through the
/r/Python
https://redd.it/1mkaf83
Hello everyone! I've spent the past year working on Synchrotron \- a live audio engine I've been programming from the ground up in only Python. This mainly stems from being tired of everything live audio being written in JUCE/C/C++, and the usual response to "how do you make a synth in Python" being "just don't".
Sure, Python isn't as performant as other languages for this. But in exchange, it's incredibly modular and hackable! I aim to keep working on Synchrotron until it's an actual legitimate option for music production and production audio engines.
Frontend URL: https://synchrotron.thatother.dev/
Source code: https://github.com/ThatOtherAndrew/Synchrotron
# What My Project Does
Synchrotron processes nodes, which are simple Python classes that define some operation they do with inputs and outputs. A node can be as short as 5 lines, and an example is shown below:
class IncrementNode(Node):
input: StreamInput
output: StreamOutput
def render(self, ctx):
self.out.write(self.a.read(ctx) + 1)
These nodes can be spawned and linked together into a graph, either programmatically or through the
/r/Python
https://redd.it/1mkaf83
GitHub
GitHub - ThatOtherAndrew/Synchrotron: Graph-based live audio manipulation engine implemented in Python
Graph-based live audio manipulation engine implemented in Python - ThatOtherAndrew/Synchrotron
Preventing ZIP parser confusion attacks on Python package installers
uv and PyPI have both released statements on a hypothetical security vulnerability that has been prevented in PyPI and uv 0.8.6+.
PyPI Summary: https://discuss.python.org/t/pypi-is-preventing-zip-parser-confusion-attacks-on-python-package-installers/101572/2
uv summary: https://github.com/astral-sh/uv/releases/tag/0.8.6
PyPI detailed blog post: https://blog.pypi.org/posts/2025-08-07-wheel-archive-confusion-attacks/
uv detailed blog post: https://astral.sh/blog/uv-security-advisory-cve-2025-54368
While probably not critical by itself if you are security paranoid or you use uv and a non-PyPI third party index that non trusted users can upload to I would recommend upgrading uv.
/r/Python
https://redd.it/1mk5uio
uv and PyPI have both released statements on a hypothetical security vulnerability that has been prevented in PyPI and uv 0.8.6+.
PyPI Summary: https://discuss.python.org/t/pypi-is-preventing-zip-parser-confusion-attacks-on-python-package-installers/101572/2
uv summary: https://github.com/astral-sh/uv/releases/tag/0.8.6
PyPI detailed blog post: https://blog.pypi.org/posts/2025-08-07-wheel-archive-confusion-attacks/
uv detailed blog post: https://astral.sh/blog/uv-security-advisory-cve-2025-54368
While probably not critical by itself if you are security paranoid or you use uv and a non-PyPI third party index that non trusted users can upload to I would recommend upgrading uv.
/r/Python
https://redd.it/1mk5uio
Discussions on Python.org
PyPI is preventing ZIP parser confusion attacks on Python package installers
The Python Package Index is introducing new restrictions to protect Python package installers and inspectors from ZIP confusion attacks. There is no evidence that this vulnerability has been exploited. This may impact a small number of projects on PyPI,…
Which is better for a new API, FastAPI or Django REST Framework?
Hey devs , I’m going for a new backend for a mid-sized project (real-time dashboard + standard CRUD APIs). I’ve used DRF in production before, but I’m curious about FastAPI’s performance and async support for this one.
/r/Python
https://redd.it/1mk2vx5
Hey devs , I’m going for a new backend for a mid-sized project (real-time dashboard + standard CRUD APIs). I’ve used DRF in production before, but I’m curious about FastAPI’s performance and async support for this one.
/r/Python
https://redd.it/1mk2vx5
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
🚀 Introducing django-sightline — Smart, Lightweight, Privacy-Friendly Visit Logging for Django
Hey everyone!
I’ve just released `django-sightline` **v0.1.0**, a plug-and-play app that lets you track visits, visualize user activity, and even map visitors geographically — all from the Django admin panel.
This tool is designed to be:
✅ **Lightweight** — no JavaScript or frontend code needed
✅ **Private by design** — no cookies, no IP tracking beyond what's required
✅ **Smart** — logs visits intelligently to avoid redundant values
✅ **Fully integrated** — beautiful charts and maps right inside the Django admin
🔍 **Core Features**
* Middleware-based visit logging (IP, user agent, path, user info, timestamp)
* Smart deduplication using hashed identifiers
* Daily/total visit metrics, line charts, and GeoIP maps
* Easy customization through [`settings.py`](http://settings.py)
* Clean and extensible model structure
* GeoIP mapping (optional, configurable)
* No extra database hits or tracking scripts
Ideal for internal tools, dashboards, admin panels, or any Django app where you want basic analytics.
https://preview.redd.it/jjqb0xfbishf1.png?width=518&format=png&auto=webp&s=c3784f8ad33eb937abc6f61c5aa21ff85fc97c3a
🔧 **What's Next**
In upcoming versions, I plan to include:
* 🔗 Referral system support
* ⚡ Improved performance under heavy load
* 🔍 Advanced filters in the admin UI
* 📚 Full documentation and guides
🧪 Try it out and let me know what you think!
GitHub: [https://github.com/francescoridolfi/django-sightline](https://github.com/francescoridolfi/django-sightline)
PyPI: `pip install django-sightline`
I'm happy to hear feedback, ideas, or issues. Hope this helps your projects gain more insight — without the bloat.
/r/django
https://redd.it/1mktz2p
Hey everyone!
I’ve just released `django-sightline` **v0.1.0**, a plug-and-play app that lets you track visits, visualize user activity, and even map visitors geographically — all from the Django admin panel.
This tool is designed to be:
✅ **Lightweight** — no JavaScript or frontend code needed
✅ **Private by design** — no cookies, no IP tracking beyond what's required
✅ **Smart** — logs visits intelligently to avoid redundant values
✅ **Fully integrated** — beautiful charts and maps right inside the Django admin
🔍 **Core Features**
* Middleware-based visit logging (IP, user agent, path, user info, timestamp)
* Smart deduplication using hashed identifiers
* Daily/total visit metrics, line charts, and GeoIP maps
* Easy customization through [`settings.py`](http://settings.py)
* Clean and extensible model structure
* GeoIP mapping (optional, configurable)
* No extra database hits or tracking scripts
Ideal for internal tools, dashboards, admin panels, or any Django app where you want basic analytics.
https://preview.redd.it/jjqb0xfbishf1.png?width=518&format=png&auto=webp&s=c3784f8ad33eb937abc6f61c5aa21ff85fc97c3a
🔧 **What's Next**
In upcoming versions, I plan to include:
* 🔗 Referral system support
* ⚡ Improved performance under heavy load
* 🔍 Advanced filters in the admin UI
* 📚 Full documentation and guides
🧪 Try it out and let me know what you think!
GitHub: [https://github.com/francescoridolfi/django-sightline](https://github.com/francescoridolfi/django-sightline)
PyPI: `pip install django-sightline`
I'm happy to hear feedback, ideas, or issues. Hope this helps your projects gain more insight — without the bloat.
/r/django
https://redd.it/1mktz2p
Python Django Developer with React Experience – Remote or On‑site (D.C Area)
We’re looking for a **Python Django Developer** with strong **React** experience to join our team at **stackArmor** (a Tyto Athene company), a cloud services and cybersecurity company specializing in secure, compliance-driven solutions (FedRAMP, FISMA, CMMC) for the public sector, healthcare, and infrastructure clients.
# About the Role:
* Build backend services with **Python and Django** and create responsive UIs using **React** (React Query experience is a plus).
* Design and integrate **RESTful APIs** and manage data with **PostgreSQL**.
* Deploy and maintain applications in cloud environments (AWS, GCP, Azure) with a strong focus on security and performance.
* Experience with compliance standards like **FedRAMP/FISMA/HIPAA** or other regulated environments is highly desirable.
# Qualifications:
* **3+ years** backend development with **Python/Django**.
* **2+ years** frontend experience with **React** and state management tools like React Query.
* Solid understanding of **REST API design**, **PostgreSQL optimization**, and cloud deployment.
* Background in software security, DevOps workflows, and regulated compliance frameworks is a plus.
# What We Offer:
* Competitive salary in the **$95K–$120K** range.
* Flexible, **remote or on-site (D.C. Area)** work arrangements.
* Work on impactful, security-focused applications within a collaborative team.
# How to Apply:
Apply directly via our website (mention that **Alec** sent you)
👉 [https://stackarmor.com/python-django-developer-with-react-experience/](https://stackarmor.com/python-django-developer-with-react-experience/)
/r/django
https://redd.it/1ml25nk
We’re looking for a **Python Django Developer** with strong **React** experience to join our team at **stackArmor** (a Tyto Athene company), a cloud services and cybersecurity company specializing in secure, compliance-driven solutions (FedRAMP, FISMA, CMMC) for the public sector, healthcare, and infrastructure clients.
# About the Role:
* Build backend services with **Python and Django** and create responsive UIs using **React** (React Query experience is a plus).
* Design and integrate **RESTful APIs** and manage data with **PostgreSQL**.
* Deploy and maintain applications in cloud environments (AWS, GCP, Azure) with a strong focus on security and performance.
* Experience with compliance standards like **FedRAMP/FISMA/HIPAA** or other regulated environments is highly desirable.
# Qualifications:
* **3+ years** backend development with **Python/Django**.
* **2+ years** frontend experience with **React** and state management tools like React Query.
* Solid understanding of **REST API design**, **PostgreSQL optimization**, and cloud deployment.
* Background in software security, DevOps workflows, and regulated compliance frameworks is a plus.
# What We Offer:
* Competitive salary in the **$95K–$120K** range.
* Flexible, **remote or on-site (D.C. Area)** work arrangements.
* Work on impactful, security-focused applications within a collaborative team.
# How to Apply:
Apply directly via our website (mention that **Alec** sent you)
👉 [https://stackarmor.com/python-django-developer-with-react-experience/](https://stackarmor.com/python-django-developer-with-react-experience/)
/r/django
https://redd.it/1ml25nk
Stack Armor
Python Django Developer (with React Experience) - Stack Armor
stackArmor is a fast-growing cloud services and cybersecurity company supporting mission-driven organizations in the public sector, healthcare, and
Saturday Daily Thread: Resource Request and Sharing! Daily Thread
# Weekly Thread: Resource Request and Sharing 📚
Stumbled upon a useful Python resource? Or are you looking for a guide on a specific topic? Welcome to the Resource Request and Sharing thread!
## How it Works:
1. Request: Can't find a resource on a particular topic? Ask here!
2. Share: Found something useful? Share it with the community.
3. Review: Give or get opinions on Python resources you've used.
## Guidelines:
Please include the type of resource (e.g., book, video, article) and the topic.
Always be respectful when reviewing someone else's shared resource.
## Example Shares:
1. Book: "Fluent Python" \- Great for understanding Pythonic idioms.
2. Video: Python Data Structures \- Excellent overview of Python's built-in data structures.
3. Article: Understanding Python Decorators \- A deep dive into decorators.
## Example Requests:
1. Looking for: Video tutorials on web scraping with Python.
2. Need: Book recommendations for Python machine learning.
Share the knowledge, enrich the community. Happy learning! 🌟
/r/Python
https://redd.it/1mlb4if
# Weekly Thread: Resource Request and Sharing 📚
Stumbled upon a useful Python resource? Or are you looking for a guide on a specific topic? Welcome to the Resource Request and Sharing thread!
## How it Works:
1. Request: Can't find a resource on a particular topic? Ask here!
2. Share: Found something useful? Share it with the community.
3. Review: Give or get opinions on Python resources you've used.
## Guidelines:
Please include the type of resource (e.g., book, video, article) and the topic.
Always be respectful when reviewing someone else's shared resource.
## Example Shares:
1. Book: "Fluent Python" \- Great for understanding Pythonic idioms.
2. Video: Python Data Structures \- Excellent overview of Python's built-in data structures.
3. Article: Understanding Python Decorators \- A deep dive into decorators.
## Example Requests:
1. Looking for: Video tutorials on web scraping with Python.
2. Need: Book recommendations for Python machine learning.
Share the knowledge, enrich the community. Happy learning! 🌟
/r/Python
https://redd.it/1mlb4if
YouTube
Data Structures and Algorithms in Python - Full Course for Beginners
A beginner-friendly introduction to common data structures (linked lists, stacks, queues, graphs) and algorithms (search, sorting, recursion, dynamic programming) in Python. This course will help you prepare for coding interviews and assessments.
🔗 Course…
🔗 Course…
Best Python Automation Framework Design courses
Hi All,
Could you share the best online Python Automation Framework Design courses that also include system design concepts and thoroughly explain all the key components to consider for building an optimal framework, especially with interview preparation in mind?
/r/Python
https://redd.it/1ml6bba
Hi All,
Could you share the best online Python Automation Framework Design courses that also include system design concepts and thoroughly explain all the key components to consider for building an optimal framework, especially with interview preparation in mind?
/r/Python
https://redd.it/1ml6bba
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
How weird was your first interaction with Python? I learned Python while writing a C++ module.
I was tasked with making some of our C++ code callable from Python. Before I knew Python.
Fortunately, SWIG helped a lot. Unfortunately, it was somewhat akin to performing open-heart surgery on someone you're currently on a first date with.
/r/Python
https://redd.it/1mldov3
I was tasked with making some of our C++ code callable from Python. Before I knew Python.
Fortunately, SWIG helped a lot. Unfortunately, it was somewhat akin to performing open-heart surgery on someone you're currently on a first date with.
/r/Python
https://redd.it/1mldov3
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
How to safely run python code in a container so it respects cgroup limits?
Not a Python dev, but mainly work on managing infra.
I manage a large cluster of with some Python workloads and recently realized that Python doesn’t really read the cgroup mem.max or configured CPU limits.
For e.g. Go provides GOMAXPROCS and GOMEMLIMIT for helping the runtime.
There are some workarounds suggested here for memory - https://github.com/python/cpython/issues/86577
But the issue has been open for years.
/r/Python
https://redd.it/1mlj7ce
Not a Python dev, but mainly work on managing infra.
I manage a large cluster of with some Python workloads and recently realized that Python doesn’t really read the cgroup mem.max or configured CPU limits.
For e.g. Go provides GOMAXPROCS and GOMEMLIMIT for helping the runtime.
There are some workarounds suggested here for memory - https://github.com/python/cpython/issues/86577
But the issue has been open for years.
/r/Python
https://redd.it/1mlj7ce
GitHub
respect cgroups limits when trying to allocate memory · Issue #86577 · python/cpython
BPO 42411 Nosy @tiran, @asvetlov Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state. Show more details GitHub fields: assignee = N...
D How do researchers ACTUALLY write code?
Hello. I'm trying to advance my machine learning knowledge and do some experiments on my own.
Now, this is pretty difficult, and it's not because of lack of datasets or base models or GPUs.
It's mostly because I haven't got a clue how to write structured pytorch code and debug/test it while doing it. From what I've seen online from others, a lot of pytorch "debugging" is good old python print statements.
My workflow is the following: have an idea -> check if there is simple hugging face workflow -> docs have changed and/or are incomprehensible how to alter it to my needs -> write simple pytorch model -> get simple data from a dataset -> tokenization fails, let's try again -> size mismatch somewhere, wonder why -> nan values everywhere in training, hmm -> I know, let's ask chatgpt if it can find any obvious mistake -> chatgpt tells me I will revolutionize ai, writes code that doesn't run -> let's ask claude -> claude rewrites the whole thing to do something else, 500 lines of code, they don't run obviously -> ok, print statements it is -> cuda out of memory -> have a drink.
/r/MachineLearning
https://redd.it/1mln24c
Hello. I'm trying to advance my machine learning knowledge and do some experiments on my own.
Now, this is pretty difficult, and it's not because of lack of datasets or base models or GPUs.
It's mostly because I haven't got a clue how to write structured pytorch code and debug/test it while doing it. From what I've seen online from others, a lot of pytorch "debugging" is good old python print statements.
My workflow is the following: have an idea -> check if there is simple hugging face workflow -> docs have changed and/or are incomprehensible how to alter it to my needs -> write simple pytorch model -> get simple data from a dataset -> tokenization fails, let's try again -> size mismatch somewhere, wonder why -> nan values everywhere in training, hmm -> I know, let's ask chatgpt if it can find any obvious mistake -> chatgpt tells me I will revolutionize ai, writes code that doesn't run -> let's ask claude -> claude rewrites the whole thing to do something else, 500 lines of code, they don't run obviously -> ok, print statements it is -> cuda out of memory -> have a drink.
/r/MachineLearning
https://redd.it/1mln24c
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community