Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Consider the following executable Python script mtmp.py: import numpy as np import os from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor # `x` is referenced `n_loop` times. def ...
user2961927's user avatar
  • 1,810
2 votes
1 answer
9 views

I am using pyDatalog to work with a grid-based system. My goal is to iterate over a standard Python list of lists (a grid) and, based on a condition, assert new facts (predicates) into the pyDatalog ...
m.m's user avatar
  • 21
0 votes
1 answer
14 views

I'm working with Gemini Live API and I want to load previous conversation context to my current live session, allowing me to resume any session from the local save. So far I've come up with this code: ...
AlxPav Chr's user avatar
0 votes
0 answers
22 views

I have a question regarding google cloud run, in my python code im using uvicorn with workers locally so when deploying to cloud run i searched for the optimal number of workers and i found that when ...
Wissam Hawchar's user avatar
0 votes
1 answer
15 views

Despite double checking my API key, permissions and domain verification - I persistently got a 401 error when trying to send an email via SendGrid using their Python SDK message = Mail( ...
user3535901's user avatar
  • 3,712
1 vote
1 answer
28 views

When I get import suggestions in VSCode they always import from the module where the thing was defined, even if that's a private module and the thing is re-exported in some public module. I would ...
Kaleb Barrett's user avatar
0 votes
1 answer
39 views

I would like to find an efficient method to multiply 2 array element by element then integrate the result. My table contain primary key, then 5 lists of real (16 bits) : time, channel A, B, C and D. ...
Erwan SORIA's user avatar
-1 votes
0 answers
14 views

I want to to add a speaker node in Python. I have make a robot node, then I add the speaker node in the robot's children. But when I run the code, it say this: INFO: music_controller: Starting ...
0 votes
1 answer
14 views

I am using LangChain to extract structured data from a user query using gpt-3.5-turbo. I have defined a Pydantic object and am passing the format instructions to the prompt. However, occasionally the ...
Sumanta Swain's user avatar
0 votes
0 answers
21 views

I have written a Qt program that runs often on my MacOS machine and I have added code to catch the closeEvent when the window is closed, primarily to stop me closing it accidentally. The closeEvent() ...
Martin's user avatar
  • 63
0 votes
1 answer
66 views

Following a tutorial on uv (version 0.9.18) I have been creating a project as: uv init new_app and then in that folder I tried to add two packages like uv add --link-mode copy flask requests but ...
Alex's user avatar
  • 45.1k
-1 votes
0 answers
52 views

To start this code is a part of a huge file that I don't fully think is necessary to paste onto here as the area that has the problem can work on its own. Also, the code is already not working as ...
Adam Garcia's user avatar
1 vote
0 answers
53 views

In jax, you can donate a function argument to save the execute memory and time, if this argument is not used any more. If you know that one of the inputs is not needed after the computation, and if ...
zhixin's user avatar
  • 194
-3 votes
0 answers
53 views

I have tried this code where I have to make a program that asks the user how many numbers they want to be printed as mode average or median, or quitting the program. Afterwards, the user has the ...
Poppie La Riviere's user avatar
Advice
0 votes
4 replies
60 views

I am a beginner learning GCSE level python, but stuck on this book problem Here, the num1.txt file data is appended to the temp1list num1.txt file data: 10,20,30,40 20,30,40,50 30,40,50,60 40,50,60,70 ...
nova's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
…
147279