2,206,810 questions
0
votes
1
answer
38
views
I try to set a value to an Entry, but Entry just receives PY_VAR
I have a problem where I set a value to a StringVar, and the entry that is associated with the StringVar doesn't display any value (it's just empty). If I debug, then the var variable (that is a ...
Best practices
0
votes
4
replies
86
views
the multiple choices in a database
I'm building a web application that has ~34 independent dropdown lists (e.g. currency codes, country names, user types, exemple statuses, etc.). Each list has no relation to the others — they're ...
-9
votes
0
answers
72
views
Module not found error - but it's installed [closed]
I'm having trouble getting a Python module to work, it apparently has some useful shortcuts to access a database using its API, I start with a call to import it which fails with a ModuleNotFoundError ...
-3
votes
0
answers
69
views
Cannot parse argument which contains both spaces and double quotes
I am trying to pass an argument to a Python script as a single literal string, but Python simply cannot parse it properly. No matter what I do, the argument is mangled. I have tried escaping the ...
0
votes
0
answers
53
views
Python 3.13.0 on Mac OS, jupyter notebook can't find pandas installed
I have installed pandas using
pip3 install pandas
In my terminal it works fine with no error
import pandas as pd
But I can't do so in Jupyter Notebook, this is the error:
----------------------------...
0
votes
1
answer
41
views
Learning about a 'GET' request in flask [closed]
In here
<!DOCTYPE html>
<html>
<body>
<h3>Enter Your Name</h3>
<form method="post">
<input type="text" name="username&...
Advice
1
vote
6
replies
86
views
New to this. Tips for how to start
I am a student trying to get started with intro in scripting this next term. Any advice or practice places on how to learn coding and anything you are willing to share to help me out. I have never ...
Advice
0
votes
1
replies
57
views
How to Evaluate a Self-Evaluating RAG System using DeepEval / RAGAS with a Golden Dataset?
I've built a Self-Evaluating RAG System using LangChain, ChromaDB, BM25 hybrid retrieval, query rewriting, and cross-encoder reranking, with LLaMA 3.3 70B via Groq as the LLM.
I'm trying to evaluate ...
0
votes
1
answer
42
views
How do you add GCP billing report labels onto Airflow's BatchPredictionJobHook.create_batch_prediction_job()?
According to the official Airflow documentation we can use labels arg to mark certain batch predictions which we can use in GCP Billing > Report to filter by the labels. I tried it like this
...
...
1
vote
2
answers
120
views
Loop ends at the start of 3rd iteration
Hi whom ever is reading this, I am currently debugging my code and I am stuck on a weird bug.
I am using two main files for the project, one called logic.py and one called card.py. The entire game ...
0
votes
0
answers
48
views
python code for phyphox to simulate a fighter jet cockpit, the window opens briefly then closes
the window pops for not even half a second, doesn't really show anything, i don't get whats wrong with the code, as i mentioned before i am relatively new to coding and i want my code to show a ...
1
vote
1
answer
78
views
Qt Svg element with percentage size not correct size
I have a simple SVG file that draws a polygon over a rectangle. The size of the rectangle is given as 100%. This looks good in emacs' viewer, inkscape, firefox.
<svg xmlns="http://www.w3.org/...
1
vote
0
answers
51
views
Error converting python DataFrame to MATLAB table
I have used the following commands to load in a python .pkl file in MATLAB:
fid = py.open("data.pkl");
data = py.pickle.load(fid);
T = table(data);
This loads a python DataFrame object and ...
Tooling
0
votes
2
replies
92
views
How to build a mobile barcode scanner that retrieves product prices from a custom API (similar to Scan2Info)?
I’m working on a system similar to Scan2Info, where users can scan a product barcode using their mobile phone camera and instantly retrieve product information such as price, name, and details from a ...
Advice
0
votes
2
replies
33
views
Incorrect time index in mdf file created in asammdf (python)
I am creating an mdf file from a pandas dataframe in python. Data is sampled at .015s rate. Issue I'm having is that the created mdf file shows the time index as being around 11 hrs total file time ...