Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
28 views

I'm using pytorch ignite to be able to get metrics easily, so I'm using their checkpoint system to save my model. I want to be able to test one image at a time for a user interface, but when I try to ...
Niaisenif's user avatar
0 votes
0 answers
35 views

I am currently developing a linux mod manager, and I am having major issues trying to extract 7z archives from within the flatpak. There is a library called "py7zr" available but I simply ...
Allexio's user avatar
  • 51
Advice
0 votes
0 replies
26 views

Hello I'm looking for advice/best practice how to minimize the size of an mdf file created using python/ asammdf. I have an MDF file created by a data logger and file size is 2.4MB. It contains time ...
jB777's user avatar
  • 127
0 votes
1 answer
77 views

Say I have a dataframe of the following form import pandas as pd d1 = str([{"Alice": "1/2"}, {"Bob": "3/11"}, {"Charlotte": "5/2"}]) d2 = ...
AJY's user avatar
  • 117
0 votes
2 answers
65 views

I've been making this frogger clone in PyGame. So far I have created my own pixel art, implemented a tilemap and a couple sprites. The issue is performance, when having my car sprite move across the ...
Nebri's user avatar
  • 867
Advice
0 votes
2 replies
66 views

I've got a class project to do, it's supposed to display the mandelbrot set with a customizable colour map and a max_iter slider. I've got the colour map radio buttons working, but I can't manage the ...
Helewapo's user avatar
1 vote
0 answers
61 views

tl;dr: How to set up cmake's Python locator, so that it uses the first python3 in $PATH? I am involved in a software project, which should be buildable with different cmake versions form different ...
H. Weirauch's user avatar
Advice
0 votes
4 replies
75 views

I want to start my job in industry and I need to learn more about the ML for anomaly detection! As I want to stay up to dated could you please introduce some useful websites or documentations that can ...
hosna mozafari's user avatar
Advice
0 votes
1 replies
51 views

This is probably a stupid question, but. I'm building a character-level BPE algorithm for use in a Language Model. I am training it on 10k articles I got from Wikipedia Dump, the code used to get the ...
mostley_imaginary's user avatar
-8 votes
1 answer
137 views

I'm having trouble to implement __str__ in my tkinter application. Can somebody please help me?
Thingamabobs's user avatar
  • 8,369
-1 votes
0 answers
26 views

I am trying to implement a type that inherits the built-in float type: class Percent(float): def __init__(self, x): super().__init__(x / 100) print(float(Percent(12))) # I want 0.12 ...
Eric Stdlib's user avatar
  • 1,586
Best practices
0 votes
1 replies
36 views

I'm new to Appium automation on Android and running into a scrolling performance issue. My current code: python driver.find_element( AppiumBy.ANDROID_UIAUTOMATOR, 'new UiScrollable(new ...
Kimly Vat's user avatar
Advice
1 vote
5 replies
66 views

I have a WordPress database that I am accessing from a Django site. I'd like to be able to log users in with their WordPress passwords. Is there a good way to do this in Python? I have tried these ...
tklodd's user avatar
  • 1,098
0 votes
0 answers
34 views

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 ...
AReubens's user avatar
  • 113
-1 votes
0 answers
59 views

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'...
David Maze's user avatar
  • 166k
1 vote
2 answers
148 views

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 ...
Pablo Estevez's user avatar
Advice
0 votes
6 replies
126 views

I'm trying to create a specific to-do list that has the Google keep kind of tick boxes, but I want to create it with Flask so I can store it with the current price of the written list in the database, ...
Lucy Sunday's user avatar
-6 votes
0 answers
51 views

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 ...
Sriharan Vijayakumar's user avatar
-5 votes
3 answers
154 views

I have a "deeply nested" NumPy array like this: array = [ [ [ [ "data . . . "], ] ], [ ...
Guy Eric Matz's user avatar
2 votes
2 answers
95 views

_Item = TypeVar("_Item", BaseItem) @app.get(path="items") def get_items() -> list[_Item]: return _get_items() Pylance complains: TypeVar "_Item" appears only ...
Thanasis Mattas's user avatar
Best practices
0 votes
2 replies
64 views

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 ...
cknott's user avatar
  • 33
Advice
1 vote
0 replies
72 views

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 ...
Kev's user avatar
  • 1
-2 votes
2 answers
141 views

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 ...
PassionateFruit678's user avatar
Advice
0 votes
3 replies
45 views

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 (...
Francisco Augusto Varela Aguir's user avatar
-2 votes
0 answers
45 views

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 ...
KLJOM's user avatar
  • 1
Advice
0 votes
2 replies
81 views

I'm trying to create a simple code editor for an old custom programming language used by a single Company's product, as part of an effort to make some custom tools to avoid using the Company's ...
InfiniteNopes's user avatar
Best practices
0 votes
1 replies
48 views

Building a python pipeline ingesting ~50k WebSocket messages/sec. Each message needs to hit PostgreSQL and a live frontend. Two options: Option A — write both in the handler at the same time WS ...
cactus's user avatar
  • 91
0 votes
0 answers
49 views

I am using Matplotlib in Spyder and I am trying to change the figure size with figsize, but it does not seem to make any visible difference no matter what values I use. For example, even if I change: ...
Hamza Hussian's user avatar
-1 votes
0 answers
91 views

I need to enable debugging in VS Code to debug a Python file but, due to the specific nature of my .py file, I need to do this not from the project directory, but from a directory one level above my ...
Lerck's user avatar
  • 23
0 votes
1 answer
47 views

I'm processing a large pandas DataFrame (500k rows) where each row requires an HTTP request. I switched from requests to aiohttp + asyncio expecting a significant speedup, but the async version runs ...
Джон Сноу's user avatar
Advice
1 vote
9 replies
124 views

I wanted to start learn how to code from scratch without using the help from AI. What should I know about coding, like which programming language I should start with, how to test the code if it works ...
Programming Language Learning's user avatar
0 votes
1 answer
127 views

Mathutils is a Python library maintained by ideasman42. I have been using it on older versions of Python and want to update an old project to a more recent version of Python. When I try to install ...
Jules's user avatar
  • 731
-2 votes
0 answers
67 views

I am building a Google Keep-style notes app in Python using tkinter. Notes appear on screen while the app is running, but when I close and reopen it they are gone. The JSON file is either not being ...
keanisidore deguzman's user avatar
0 votes
1 answer
76 views

I am a novice Programmer learning GUI and Tkinter for the first time, attempting to make a productivity app for myself. I am trying not to use AI as much as possible. I have created a Frame within the ...
green_bloodshed's user avatar
0 votes
0 answers
47 views

I am using the Jupyter notebook to run the Facebook Prophet model using Python code. Below are the steps I followed: 1. Import Libraries import pandas as pd import numpy as np import matplotlib....
Hassan Osseiran's user avatar
-1 votes
1 answer
64 views

I am trying to render markdown by using .markdown method for the following markdown: **Stellar Bank** requested a finance vertical campaign focused on **in‑view rate** with a budget of **$80,000**. We ...
Volatil3's user avatar
  • 15.1k
Advice
0 votes
4 replies
67 views

I am trying to write my first project using python which is a recipe administrator, which contains a programm that fetches url given a keyword, and fetches them back and add them dynamically to a ...
Ruixuan G's user avatar
-1 votes
1 answer
87 views

I was trying to connect Google Colab to my VS Code and I successfully did that but when connected to Colab kernel, I can't read files that are in my local machine. But in local Python environment the ...
Mahir Tanzim's user avatar
Advice
1 vote
5 replies
109 views

I want to create two Gems (custom LLMs in Gemini that respond based on specific instructions) for two different tasks. Please suggest the most suitable prompts, based on your experience in both ...
Harsh Deshpande's user avatar
Advice
0 votes
3 replies
108 views

I want to create two Gems (custom LLMs in Gemini that respond based on specific instructions) for two different tasks. Please suggest the most suitable prompts, based on your experience in both ...
Harsh Deshpande's user avatar
1 vote
1 answer
59 views

I found that in Polars, when using a single expression with multiple chained .over() calls, rolling_mean behaves differently from sum. The following expression returns all null (expected non-null ...
noob_191's user avatar
2 votes
1 answer
130 views

I am unable to use opencv cap.read() on .avi files since it crashes there. There seems to be some problem with fourcc since it returns 0.0 and cap.IsOpened returns true. The fps, width, height are ...
RajaKrishnappa's user avatar
Best practices
0 votes
4 replies
180 views

After working on several Rust projects with AI assistance, I want to share a division of responsibility that has worked well in practice, and ask whether others have found the same — or a better ...
杨尚山's user avatar
2 votes
0 answers
110 views

How do I persuade SymPy to evaluate an infinite sum which converges and I know SymPy should be able to do? For example, the following just gives back the unevaluated infinite sum: a = Symbol('a',real=...
David B's user avatar
  • 21
-4 votes
1 answer
113 views

Basically the dictionary I am using has a bunch of floats as the values to each key, I have everything down just my issue is that my variable is only saving the most recent value I pulled. I am sure ...
Freaku's user avatar
  • 1
-1 votes
0 answers
82 views

I use Python. I've tried to import matplotlib and numpy into my Jupyter notebook, but I have received this error message. How can I rectify this issue, preferably the exact lines of code I should type?...
pranav_b27's user avatar
0 votes
2 answers
81 views

I need to convert the query output into dictionary, currently the output type is tuple. There is 3 Table output, how to convert into a single Dictionary output with the Column name respectively. I ...
Prem's user avatar
  • 37
Advice
0 votes
2 replies
110 views

I'm looking for a sample of an IEC 61131 PLC source program that explicitly contains routines in a 'foreign' textual language. 'Foreign' here means a language whose definition is not part of 61131. ...
Kirk Hansen's user avatar
Advice
3 votes
17 replies
217 views

I've started work on my first text based game and would like advice on how to streamline it. I'm programming it entirely in python 3.12. This is only my second personal project and I've never done ...
No Sleep's user avatar
1 vote
2 answers
52 views

I am creating a an mdf file from a pandas dataframe with time series data. I have string channels that I am not sure how to add, I get an error using the code below. data = { "GLOBAL_TIME&...
jB777's user avatar
  • 127

1
2 3 4 5
44142