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

I have just get my hands dirty with VSCode's extension Google Colab (by Google). While I can connect to google servers for running Jupyter Notebooks (.ipynb files), Is there a way to use VSCode ...
Sohaib Imran Bhatti's user avatar
-1 votes
0 answers
38 views

About 3 years ago I developed a fairly simple database in Microsoft Access. I was very unexperienced at the time, and now I'm noticing major issues with how I structured tables and the database is ...
Bhavan Baijnath's user avatar
0 votes
0 answers
15 views

I'm getting an error when importing numpy from an Apache mod_wsgi application on Fedora 43. It does not happen in Rocky Linux 9, the production server. app.wsgi: import sys sys.path.insert(0, '/var/...
Clodoaldo Neto's user avatar
-3 votes
0 answers
25 views

I’m working on a Selenium-based Instagram scraper (for learning purposes) and I'm trying to extract the first 20 comments from a post. However, Selenium always returns only 15 comments, even though ...
Varun's user avatar
  • 1
-5 votes
0 answers
25 views

data = [ {"id": 1, "name": "Alice", "active": True}, {"id": 2, "name": "Bob", "active": False}, {"id&...
Shubh Gupta's user avatar
0 votes
1 answer
31 views

I want to use numba to accelerate a physical simulation of water sphere layer, using the code for simulating: from numba import njit import numpy as np from consts import * """...
YingKai Niu's user avatar
0 votes
0 answers
23 views

I am trying to show a video feed from a camera captured using cv2 in a PyQt6 window. I have done some experimenting and followed a few guides to create the code included below. It creates the window ...
Oscar Lodge's user avatar
Best practices
0 votes
5 replies
85 views

import random number_to_guess = random.randint(1, 10) while True: guess = input("Guess a number between 1 and 10: ") # This crashes if 'guess' is not a number if int(guess) == ...
P Jaideep's user avatar
-2 votes
0 answers
38 views

This is my Code: (I want to plot in 3D the Chaotic and symbolic paths of Three-Body interaction given any input for mass, radius, and initial position of the 3 bodies) I keep getting straight lines as ...
user31976117's user avatar
-4 votes
0 answers
63 views

hello i am trying to make some sort of scrabble like game on python and i was wondering is there prebuilt programs that can already validate if a word is a proper word on python I've heard of enchant ...
Danny Scott's user avatar
0 votes
0 answers
38 views

I am trying to apply changes from one dataframe (source file is a 7 MB .CSV) to a larger dataframe (source file approx. 3GB .CSV), e.g. update existing rows with matching IDs, while at the same time ...
starmandeluxe's user avatar
-1 votes
0 answers
37 views

I found a code snippet for fine-tuning the Gemma-3 4B model on an OCR dataset that converts handwritten math formulas into LaTeX. The original author shared their results showing about **38 million ...
Milad Rasooli's user avatar
0 votes
0 answers
34 views

I wrote a piece of Python code to read different GPS observation files (.24o) and navigation files (.24p), and generate polar plots of satellite trajectories. It is hoped that the RINEX file can be ...
Aria's user avatar
  • 1
0 votes
0 answers
32 views

I want to make a bidirectional plot where the selected values through brush in the scatter plot appear in a different opacity in the choropleth map, and the selected countries in the choropleth appear ...
Andrea Li Feng's user avatar
0 votes
1 answer
58 views

I am struggling a bit with uv mental model and compatibility with existing tool. I have a project with a "setup.py", previously using python -m build to run the build. I couldn't find a way ...
Eric Burel's user avatar
  • 5,146
-7 votes
0 answers
60 views

Title: Improving OCR accuracy for mixed-layout PDFs (Python): preprocessing & model suggestions? I’m building an automation tool that monitors a folder, detects new PDFs, runs OCR, and extracts ...
Anshu Sharma's user avatar
1 vote
0 answers
77 views

Please help me! I'm building a simple stock search app using Flask (backend) and plain HTML/JS (frontend). When the user enters a ticker, the app: Send a GET request to my Flask backend (/search) ...
Phong Diep's user avatar
-3 votes
0 answers
73 views

I’m working with around multiple PDF files (all in English, mostly digital). Each PDF contains multiple tables. Some have 5 tables, others have 10–20 tables scattered across different pages. I need a ...
Shirish Maharjan HERD's user avatar
0 votes
1 answer
52 views

I encountered a problem while using Pyton's QPlaintExt component: How do I set the line height of QPlainText? I've tried multiple approaches: Method 1: Using QTextDocument with HTML (Guaranteed to ...
Admin's user avatar
  • 11
0 votes
1 answer
63 views

I have a setup like the following from typing import Generic, TypeVar T = TypeVar("T") class ThirdParty: def __init_subclass__(cls): ... # does not call super() class Mine(...
Daraan's user avatar
  • 5,166
0 votes
0 answers
70 views

I am running into a consistent error with the PyPI install of apache superset 6.0.0. I am following the instructions from https://superset.apache.org/docs/6.0.0/installation/pypi/. pip install apache-...
patrice's user avatar
0 votes
1 answer
83 views

I have used --user in the past to not have to deal with virtualenvs in the past, but I cant seem to do it now, presumably on a different python version.. $ pip install --user esphome error: externally-...
Karthik T's user avatar
  • 32.1k
Best practices
0 votes
6 replies
102 views

I have this function I came up with as a python noob that takes an "inputMap", a 2-dimensonal array as follows: exampleInputMap = [ ['1', 'a', -1], # do the first action ['2', 'b'], ...
User 23415's user avatar
-1 votes
0 answers
54 views

Using DataGrid (Data Grid – Shiny for Python), how can LaTex/Markdown notation, which strings are stored in the cells of a DuckDB database file, be displayed in the Shiny webapp as human readible ...
user31952284's user avatar
0 votes
0 answers
67 views

Cannot Run Apache Airflow Unit Tests: sqlalchemy.exc.OperationalError: unable to open database file I am attempting to run a single unit test within the Apache Airflow repository (airflow-core/tests/...
Mohamed Hany's user avatar
0 votes
1 answer
73 views

The project I'm working on is a simulation/ mock up of a VPN service. I've figured out how to connect multiple clients to a single server using loops and multi-threading, but now I'm struggling to ...
Robert Chaney's user avatar
2 votes
1 answer
64 views

I am trying to display a LaTeX-style equation in a Matplotlib plot using a custom font (Algerian). I want both the equation and the surrounding text to use the same upright (non-italic) font. Using ...
taiwan12's user avatar
  • 111
-1 votes
0 answers
71 views

Consider this Python snippet: range1 = range(3) range2 = range(2) print([(e1, e2) for e1 in range1 for e2 in range2]) This displays 3x2 = 6 tuples, as expected: [(0, 0), (0, 1), (1, 0), (1, 1), (2, 0)...
Pierre Denis's user avatar
0 votes
0 answers
64 views

How do I check how many Python installations I have on my Mac? I am currently runing Tahoe 16.0.1 and Python is already present on my Mac from Apple but I also installed Anaconda which came with its ...
Hana_lee's user avatar
1 vote
1 answer
74 views

Here is a snippet of how logging is done in my test script: logging.basicConfig( level=logging.INFO, format="%(asctime)s %(message)s", datefmt="%Y%m%d %H:%M:%S", ...
Qiang Xu's user avatar
  • 4,891
-10 votes
1 answer
95 views

I am learning Python and want to reverse a string. Example: Input: hello Output: olleh I know slicing works (s[::-1]) but I want to know if there are other Pythonic or recommended ways to do it. Is ...
Ronit Raj Verma's user avatar
-6 votes
0 answers
69 views

I happen to have a project on the video streaming using RTSP and RTP and I'm stumping on how to implement HD video streaming for this. Can anyone help me with this problem? I did a little of searching ...
user1146's user avatar
-3 votes
0 answers
55 views

I’m running into a blocking issue with a Python 3.11 Azure Function App on Linux. Until this week my Function App contained three HTTP-triggered Python functions and everything worked perfectly. After ...
PleaseHelp's user avatar
-5 votes
4 answers
119 views

I am trying to search for a number in a tuple using a while loop in Python. The program finds the element , but it does not stop and continues to run until the end of the tuple. Here is my code: ...
sneha verma's user avatar
0 votes
1 answer
88 views

I'm trying to use PyTorch with an NVIDIA GeForce RTX 5090 (Blackwell architecture, CUDA Compute Capability sm_120) on Windows 11, and I keep running into compatibility issues. PyTorch detects CUDA, ...
sajjadesmaili's user avatar
0 votes
0 answers
47 views

I want the dash.dcc.Dropdown to look like the dbc.DropdownMenu in the bootstrap site: This is my sample code: # -*- coding: utf-8 -*- from dash import Dash, dcc, html import dash_bootstrap_components ...
Clodoaldo Neto's user avatar
0 votes
1 answer
70 views

I am having a problem to put an entire row from data in a list import pandas as pd import numpy as np import csv df= pd.read_csv ("data.csv") my_list = [] # list for n in range(1, ...
Kan's user avatar
  • 41
1 vote
1 answer
62 views

I'm using Buddy Works CI/CD. My use case is that I want to run auto evaluation via CI every time there is a push of changing a evaluation data file. I have tried a lot but fail. My current approach is ...
panda's user avatar
  • 31
-4 votes
0 answers
69 views

was experimenting with string handling and noticed something confusing. In the following code, two identical string literals behave differently depending on where they are used: s1 = "harsh" ...
Harsh Goyal's user avatar
0 votes
1 answer
71 views

I am trying to build a small scale deep learning framework. I defined my tensor class as follows class Tensor: __slots__ = ( "_backend", "_data", "...
Featherball's user avatar
0 votes
0 answers
48 views

I'm trying to run calculations using multiple cores in Python on multiple platforms (Linux, macOS, Windows). I need to pass a large CustomClass Object and a dict (both readonly) to all workers. So far ...
polyte's user avatar
  • 449
0 votes
2 answers
96 views

I am learning OOP in Python. I created a class and tried to update an instance variable inside a method, but the value doesn’t change. class Student: def __init__(self, name, marks): self....
Shivam Gupta's user avatar
-5 votes
0 answers
93 views

I’m trying to add numbers to a list using a loop: nums = [] for i in range(5): nums.append(i * 2) print(nums) But the list prints [] instead of values. Am I missing something basic? How can I ...
FARHAN AHMAD's user avatar
Best practices
0 votes
6 replies
144 views

I wrote a simple recursive function to calculate the sum of digits of a number. But instead of returning an integer, it prints None. def digit_sum(n): if n < 10: return n print(...
Shikhar Singh Rajput's user avatar
0 votes
1 answer
85 views

I am trying to copy data from game files to my own files to mod said game, after some updates to the game I would need to rewrite one specific line on over a thousand files, however due to the mod ...
Peter A's user avatar
0 votes
0 answers
80 views

Some time ago I had tried to install MySQL workbench correctly on my system, and it was a tremendous headache. This is because I use Kubuntu with a very new version of Ubuntu Release, and I had a lot ...
Pedro Wagner's user avatar
-1 votes
0 answers
65 views

I am trying to analyze and optimize recursive algorithms, particularly with regards to their time and space complexity. I have written a recursive solution for the Fibonacci sequence and a merge sort ...
Harsh Goyal's user avatar
-3 votes
0 answers
62 views

I am working on a configuration manager in python that loads settings into a dictionary and updates them dynamically during runtime. The issue I am facing is detecting when keys inside the dictionary ...
Jahnavi Sanku's user avatar
0 votes
1 answer
71 views

I have a problem with forwarding messages with caption_entities. Attached below is the code that I use to make the transfer itself, as well as the result of its operation. The result shows that ...
user31645108's user avatar
Advice
3 votes
5 replies
120 views

I need to compute ~2 million coordinates (64-bit float tuples) They're the intersection points of lines that form a trapezoid-shaped grid (see visual below) The shape of the trapezoid is different ...
ReX357's user avatar
  • 1,229

1
2 3 4 5
44186