Skip to main content
0 votes
0 answers
17 views

Plot Matplotlib 2D patches with spherical projection

I am trying to create a slightly complex 2D plot with astronomical data, using Matplotlib, and Astropy. It involves a astronomical image, overlaid with a scatter plot, and Matplotlib patches. Using ...
aparajito's user avatar
  • 103
0 votes
0 answers
24 views

Retrieve per-class gradients without create_graph=True and retain_graph=True

I am trying to keep track of the per-class gradients of 10k+ classes. Having retain_graph=True allows to access them but uses significant amount of memory. However, I am trying to figure out a way ...
M. Al Jumaily's user avatar
0 votes
1 answer
34 views

Markdown not showing images from local Flask site

I have created a Flask site to serve static images. It is http only site and not https I can view these images (mainly svg but also a png file for testing) in the browser. However when I try to link ...
am84's user avatar
  • 1
0 votes
0 answers
17 views

Combining unittest with ddt.idata

I have some tests that are developed using @idata decorator from ddt package. I want to run only one of decorated test methods (test01_...) in the test class, not all of them. Trouble is it seems to ...
LetMeSOThat4U's user avatar
0 votes
1 answer
53 views

python program malfunction when converted to .exe

I have an issue converting a .py to .exe using pyinstaller . The program below works perfectly as a .py, but everything i tried to convert it to .exe with pyinstaller or auto-py-to-exe it gives an ....
seblenor's user avatar
0 votes
0 answers
12 views

How do I set JWT refresh token location to cookies without having pydantic_core.ValidationError in my fastapi backend?

I am creating a fastapi backend for user authentication with jwt. I am using fastapi-jwt-auth library to create access and refresh tokens. I am trying to send the refresh token in a cookie. @router....
Burhan ud din Fida Ali's user avatar
2 votes
0 answers
13 views

How can I optimize a Python RTSP → YOLOv8 face-recognition → WebSocket pipeline to handle 6–8 cameras without lag/stutter?

What i am Trying to do? I want to access the ip cameras and add a face recognition model to the live feed and display it to the web browser frontend for the ease of access this is the main concern, ...
playkashyap's user avatar
0 votes
1 answer
23 views

CoverageWarning: Unrecognized option '[tool.coverage.run] exclude_also=' in config file pyproject.toml

When I run pytest: uv run pytest . -k "test_my_project" --cov=development/my_project I receive the following report, with 1 warning: ========================= test session starts ===========...
Laurent's user avatar
  • 13.6k
1 vote
2 answers
22 views

Trying to write a unit test to test a fastapi app with a middleware that changes the request.url.path

This is the code below. I want to test a request coming in that has part of its path prefixed by external means. This middleware removes it before servicing the request. app = FastAPI( title="...
Kevin Piotrowicz's user avatar
0 votes
0 answers
34 views

Why does Gmail API override the Date header even with internalDateSource: 'dateHeader' and deleted: true in users.messages.insert?

I am working on a Python tool to migrate emails into Gmail while preserving the original Date header. My goal is simply to build a cli tool that allows to copy email from gmail account a to gmail ...
Pitto's user avatar
  • 8,637
0 votes
1 answer
20 views

Import "llama_index.llms.ollama" could not be resolved

I have the following imports for a python file thats meant to be a multi llm agent soon. I wanted to use llama_index and I found a nice video from Tech with Tim which explains everything very well. I ...
Joshie's user avatar
  • 3
0 votes
0 answers
34 views

subprocess.run won't recognise a command [duplicate]

This is Linux terminal related and I'm very new to Linux, so please be patient with me. I'm using Python 3.12 on Linux (Bazzite, specifically) to run yt-dlp commands, with yt-dlp installed through ...
Suntooth's user avatar
0 votes
2 answers
25 views

How can I remove all legends from a matplotlib axes with multiple legends?

Given a matplotlib plot with more than one legend, I would like to be able to remove all legends from the plot. Here is a simple example code to produce a plot with two legends: import matplotlib....
BernhardWebstudio's user avatar
0 votes
0 answers
22 views

PettingZoo + Ray RLlib card game

I created a simple card game for 2 players with PettingZoo and agents are trained with Ray RLlib (PPO). Game rules are: 2 players, 32 cards (7 to ace) each trick both players play one card on table, ...
GMarco24's user avatar
  • 428
0 votes
0 answers
23 views

NRF24L01 communication between Raspberry Pi 4 and Raspberry Pi Pico (MicroPython) not working

I’m trying to set up wireless communication using two NRF24L01 modules. I’m using a Raspberry Pi 4 Model B as the receiver using the pyRF24 Library and a Raspberry Pi Pico with MicroPython as the ...
Nicolas's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
147345
close