2,207,071 questions
0
votes
0
answers
11
views
DES - Salabim - Animation interaction with animation time
I'm trying to run a DES simulation in python with Salabim, and would like to make it interactive with buttons that change simulation behavior.
Currently I can make changes to resource levels while the ...
-1
votes
0
answers
26
views
(SOLVED) Python Lexer Reading Numbers Function Position Error
I'm currently creating a Lexer for my Interpreted Scripting Language, i'm actually trying to add a function to read numbers to create a Integer Token
Principal Code :
# Read numbers
def ...
0
votes
0
answers
23
views
How do I tell Claude Code about my Hatch environment?
I tend to prefer Hatch as my Python environment manager. The one challenge with Hatch is that it keeps its per-project virtual environments in a non-obvious system directory. Working standalone, I'...
1
vote
1
answer
39
views
How to type a decorator as a callable on Python
I want to type a decorator, that is a callable that returns a callable.
I want to type this on a way that validate at the moment of decoration that the args and returns type are correct, but also ...
Advice
0
votes
3
replies
57
views
How to create a dynamic todo list app using flask, sql, css, JavaScript, HTML, in pycharm
Good day Everyone, Please I am new to programming and I’m trying to create a specific todo list that has the google keep kind of thick boxes, but I want to create it with flask so I can store it with ...
-2
votes
0
answers
50
views
Not getting any data on changing the sequence of parameters [closed]
I'm hitting LATAM Airlines' internal API to fetch inbound (return) flights after selecting an outbound flight. The API keeps returning an empty paginated response despite passing all correct ...
-5
votes
0
answers
40
views
Speech To Text Model Recommendation [closed]
Hi I have developing a real time speech to text. But i can't found a better real time stt model. I have tried whisper, microsoft vibevoice etc... But unable to cover the 100%. Could you please suggest ...
-4
votes
3
answers
109
views
How can I remove unnecessary layers from a nested array?
I have a "deeply nested" NumPy array like this:
array = [
[
[
[ "data . . . "],
]
],
[
...
1
vote
1
answer
48
views
FastAPI response model for env-dependent variable return type [closed]
_Item = TypeVar("_Item", BaseItem)
@app.get(path="items")
def get_items() -> list[_Item]:
return _get_items()
Pylance complains:
TypeVar "_Item" appears only ...
Best practices
0
votes
2
replies
56
views
What is the best way to modify values in a slice of a column with .iloc in Pandas
With ChainedAssignmentErrors being enforced in Pandas 3.0 I was wondering what the best way to modify values in a slice of a column where the slicing is done with .iloc[] is.
For example this causes a ...
Advice
0
votes
1
replies
57
views
Book Recommendation in PyTorch
I am looking to find a book on PyTorch that is suitable for beginners, Ive used sklearn in the past for ML its a simple workflow for me prepare the X and Y data, fit/train a model, and make ...
-1
votes
2
answers
129
views
Why does this work on windows but not mac? [closed]
I'm using flask to run a website, working across my personal imac (running macos 26) at home, and a windows PC (running win11) at college to code, storing all the code in github. I run app.py from the ...
Advice
0
votes
4
replies
113
views
How I'm learning Python
I'm new. I started learning with YouTube, then with W3Schools, and lately I've been doing Exercism exercises.
I also started uploading what I learn on GitHub, everything I learn. I'd like to know any ...
Advice
0
votes
3
replies
41
views
How can I prevent Dash reloader from re-running database connection on every file save?
I'm building a Dash dashboard that loads data from a remote database (Redshift) on startup. The loading takes ~2 minutes. When I use use_reloader=True, every time I save any .py file in the project (...
-2
votes
0
answers
37
views
How do I connect my selenium-webdriver Webscrapper API to my python file under scrape.py so that it works properly with AI calls with LangChain?
I have all the accounts set up, and I am trying to debug my code as I keep encountering errors when I try to use the scraper.
scrape.py
The problem is I run the the program, but the original code is ...