Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,566
» Latest member: kholdeman
» Forum threads: 38,631
» Forum posts: 175,019

Full Statistics

Online Users
There are currently 434 online users.
» 0 Member(s) | 425 Guest(s)
Bing, Google, Baidu, Mojeek, Facebook Dev, Yandex

Latest Threads
Setting AST node lineno c...
Forum: General Coding Help
Last Post: deanhystad
41 minutes ago
» Replies: 4
» Views: 167
How do select this table ...
Forum: Web Scraping & Web Development
Last Post: snippsat
6 hours ago
» Replies: 7
» Views: 235
[split] Simple webbot for...
Forum: Code Review
Last Post: AB073
8 hours ago
» Replies: 0
» Views: 27
What Are the Most Overloo...
Forum: News and Discussions
Last Post: DeaD_EyE
10 hours ago
» Replies: 1
» Views: 58
Wish to write a code for ...
Forum: General Coding Help
Last Post: Hasan2025
Today, 06:40 AM
» Replies: 4
» Views: 961
I have a question
Forum: General Coding Help
Last Post: Pedroski55
Today, 04:47 AM
» Replies: 1
» Views: 73
How to produce a CPU load...
Forum: General Coding Help
Last Post: Plyth
Today, 02:19 AM
» Replies: 2
» Views: 105
Venv - Python Virtual Env...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 02:23 AM
» Replies: 1
» Views: 113
Webscraping: Attendance L...
Forum: Web Scraping & Web Development
Last Post: Larz60+
Yesterday, 02:20 AM
» Replies: 1
» Views: 105
Convert any Python expres...
Forum: General Coding Help
Last Post: voidtrance
Jun-16-2025, 02:06 PM
» Replies: 0
» Views: 132

 
  Best way to make built-in functions available to my module functions?
Posted by: Pedroski55 - Oct-28-2024, 04:45 AM - Forum: General Coding Help - Replies (1)

Recently, there was a question about counting the numbers from a picture of 2 dice. I thought that was interesting, so I fiddled with it.

I import ..... More

Print this item

  Comparing two Pandas df’s and returning only changed records
Posted by: hobbycoder - Oct-28-2024, 03:28 AM - Forum: General Coding Help - Replies (1)

df2 contains circa 1M rows and 9 columns. df2 starts life as a copy of df1, and only has changes made to values, with no rows or columns added or del..... More

Print this item

  Docker Flask App on windows system
Posted by: Osaci - Oct-27-2024, 06:12 PM - Forum: Web Scraping & Web Development - No Replies

Hello!

I'm trying to build a flask chat app but facing following issue (on windows)

sending post and get requests works fine locally through
..... More

Print this item

Question Using PIL to resize an image produces no image
Posted by: Calab - Oct-27-2024, 05:16 PM - Forum: GUI - Replies (2)

I am selecting a file using a tkinter file dialog. I open the file, resize it, create a PhotoImage and then update my canvas. I end up getting no imag..... More

Print this item

  Numpy, array(2d,bool), flipping regions.
Posted by: MvGulik - Oct-26-2024, 06:42 PM - Forum: General Coding Help - Replies (2)

I got a numpy 2d bool array. And like to flip(True/False) some array regions. But have not found any hints in numpy docs.

So ... Is there some nump..... More

Print this item

  How to put my game loop into a function?
Posted by: temlotresid6 - Oct-26-2024, 11:45 AM - Forum: Game Development - Replies (9)

I am not sure if this is too much code to post, but this is the most code I've had in a single program so now it's overwhelming trying to solve this. ..... More

Print this item

  python error
Posted by: buraq1 - Oct-26-2024, 09:28 AM - Forum: General Coding Help - Replies (3)

Hi, I am working on an algorithm called Augmented random search (ARS) this is its main code:

[python]def mkdir(base, name):
path = os.path.jo..... More

Print this item

  SourceTrail errors: troubles in use or from the tool itself?
Posted by: paul18fr - Oct-26-2024, 06:06 AM - Forum: News and Discussions - Replies (1)

Hi,

I would like to know if somebody uses SourceTrail for its devs (while it is not supported since 2021)?

I tried to install it from binaries u..... More

Print this item

Question [SOLVED] Same input different output
Posted by: antarling - Oct-25-2024, 10:36 PM - Forum: General Coding Help - Replies (2)

What's the reason?
[python]
def f(a, n):
for i in range(n):
a[i][n // 2] = '*'
a[n // 2][i] = '*'
a[i][i] = '*'
a[i][n - i..... More

Print this item

  Appending lists into lists from function is not working for me
Posted by: BoredBannana - Oct-24-2024, 03:37 PM - Forum: General Coding Help - Replies (2)

Hey guys,

I'd like to preface, that I'm a complete beginner - this is actually my first bit of code outside of isolated lesson structures.

So I ..... More

Print this item

  Best Approach for Viewing PDFs in Python Web Applications?
Posted by: Gokul_18 - Oct-24-2024, 12:57 PM - Forum: Web Scraping & Web Development - No Replies

Hi all,
I’m working on a Python-based web application, and I need to implement a feature to display PDF files directly within the browser. I’ve looke..... More

Print this item

  Trying to get JSON object in python and process it further
Posted by: Creepy - Oct-23-2024, 08:29 PM - Forum: General Coding Help - Replies (2)

Hi,

Am trying to extract a specific field in JSON in python and process it further to send output in e-mail. The problem am facing am able to get t..... More

Print this item

  How to correctly update score based on elapsed time?
Posted by: temlotresid6 - Oct-23-2024, 11:53 AM - Forum: Game Development - Replies (8)

I've tried several methods but haven't been able to get it right at all.

Every 5 seconds the score (starting at 0) goes up by 1. Every 30 seconds, th..... More

Print this item

  Flask web app MySQL runtime error
Posted by: TheTiger - Oct-23-2024, 03:49 AM - Forum: Web Scraping & Web Development - Replies (8)

Hello Python Community

I'm following a tutorial about a Flask web app and trying to connect to MySQL to display a data list (SELECT ...) when I get..... More

Print this item

  png-file in Jupyter
Posted by: bunnkvarken - Oct-22-2024, 02:47 PM - Forum: General Coding Help - No Replies

I want to insert a png-file in Jupyter, but I only get this error message even though I have checked that the name of the file is correct. (and yes, t..... More


Attached Files

Thumbnail(s)
   
Print this item

  Applications config files / Best practices
Posted by: aecordoba - Oct-22-2024, 02:17 PM - Forum: General Coding Help - Replies (2)

Hi there!
I' m newbie in Python applications development.
I'm coding an application that has several modules and I'm looking for the best way to acc..... More

Print this item

  Spyder Tutorial
Posted by: Footman - Oct-22-2024, 01:59 PM - Forum: General Coding Help - Replies (1)

Hi, as a native UK speaker, I find the American accent of the tutorial very difficult to follow. Is there a UK English speaker option/version?

Print this item

  Pipe traceback to a C program
Posted by: Alexandros - Oct-22-2024, 12:32 PM - Forum: General Coding Help - No Replies

I'm trying to embed Python in a C program. It works fine if I simply want to execute something simple. Here's the C code:

[python]#define PY_SSIZE_..... More

Print this item

  How can I position a taichi GUI window on screen?
Posted by: Alkis - Oct-22-2024, 09:24 AM - Forum: Homework - Replies (1)

I have started to work with Taichi Lang package and I couldn't find how to position the GUI window.
A simple example:

[python]
import taichi as ..... More

Print this item

  Running search/replace across Polars dataframe columns efficiently
Posted by: hobbycoder - Oct-21-2024, 07:15 PM - Forum: General Coding Help - Replies (3)

I'm looking to learn more about Polars and hope to leverage Polars more aggressively where possible. With this in mind I'd like to work through a ser..... More

Print this item

  Write json data to csv
Posted by: Olive - Oct-21-2024, 11:51 AM - Forum: General Coding Help - Replies (6)

Hi everyone,
I am stuck with my python code. What i'm trying to do is write some informations in a json format, to a csv file.
It's dealing with GPS..... More

Print this item

  Infinity iterators with itertools module
Posted by: maina - Oct-20-2024, 09:04 PM - Forum: Code sharing - No Replies

An infinite iterator is any iterator that can go on yielding values indefinitely. This means that the iterator will never raise the StopIteration exce..... More

Print this item

  find the average data from everyone in the same year
Posted by: STUdevil - Oct-20-2024, 07:16 PM - Forum: General Coding Help - Replies (11)

have some more problems with this code but i thing if i can overcome this one i can find a way to fix the others as well. have a file with country, ye..... More

Print this item

  How to move an object over time rather than instantly?
Posted by: temlotresid6 - Oct-19-2024, 01:31 PM - Forum: General Coding Help - Replies (3)

I'll post more code if needed, but I'm a bit confused. I'm currently using pygame for this.

I use randint() to spawn objects at random intervals, ..... More

Print this item

  Script to check the syntax of Python files
Posted by: Gribouillis - Oct-19-2024, 08:19 AM - Forum: Code sharing - Replies (3)

The following code is a CLI script to check the syntax of python code. Here is the usage string
[output]usage: check_syntax.py [-h] FILENAME [FILENAM..... More

Print this item

  no popin
Posted by: STUdevil - Oct-19-2024, 06:18 AM - Forum: General Coding Help - Replies (3)

i m working on a shopping cart. i post the whole code because maybe i made a mistake on the top that effect my problem.
by option 3 i need to pop an ..... More

Print this item

  CLI to python code
Posted by: azxo1 - Oct-18-2024, 12:13 PM - Forum: General Coding Help - Replies (11)

Hello Everyone!
I would like to ask for your help in converting the following CLI code to python code.
[python]nc -l -u 3000 | ffmpeg -y -f f32le -..... More

Print this item

  Visual Studio 2022 support for python?
Posted by: wardh - Oct-18-2024, 04:35 AM - Forum: GUI - Replies (6)

Hi,

I have installed Microsoft Visual Studio Community 2022 17.11.5

My questions are:

1. Python Version.

My questions are does this suppor..... More

Print this item

  compile only
Posted by: Skaperen - Oct-17-2024, 11:30 PM - Forum: News and Discussions - Replies (4)

i last did this long ago and forgot how to do it. was it a python command option? [u]i want to compile a script without running it to check for any ..... More

Print this item

  webbrowser open multiple sites incognito
Posted by: atsitras - Oct-17-2024, 04:56 PM - Forum: Homework - Replies (4)

The following code opens all the pages in a single browser, in tabs, in one go.
i would like to have it incognito. here is my working code:
[python]..... More

Print this item

  update the colorbar visualsation from the previous to the new one
Posted by: aizu - Oct-17-2024, 01:31 PM - Forum: Data Science - No Replies

hi,

I'm currently trying to create a Python code that visualizes the mandelbrot set and Julia set fractal in subplots where the Julia set will be p..... More

Print this item

  Building a Dota 2 Match Outcome Predictor Using Python
Posted by: masterhood13 - Oct-17-2024, 06:14 AM - Forum: Data Science - Replies (1)

I recently completed a project using Python to build a Dota 2 Match Outcome Predictor. The process involved data collection, feature engineering, and ..... More

Print this item

  default file for print() in with clause
Posted by: Skaperen - Oct-17-2024, 12:16 AM - Forum: News and Discussions - Replies (1)

recently i wrote a block of code like:
[python]
with open(some_file_name,'w') as f:
print('line one',file=f)
print('line two',file=f)
..... More

Print this item

Photo Tkinter GUI Sleep alternative
Posted by: the_muffin_man - Oct-16-2024, 07:20 PM - Forum: GUI - Replies (4)

Hi,

I want to create a memory game. I need the game to pause for a while. I understand that sleep stops the whole program running which is no goo..... More


Attached Files

Thumbnail(s)
   
Print this item

  tkinter and crontab
Posted by: menator01 - Oct-16-2024, 03:15 PM - Forum: Bar - Replies (1)

Just wondering if anyone has gotten a tkinter app to run from crontab?
My goal is to get the Bubble app to run from crontab
I'm using Ubuntu 24.04.1..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Setting AST node lineno c... 41 minutes ago voidtrance deanhystad General Codin...
  How do select this table ... 6 hours ago MarkMan snippsat Web Scraping ...
  [split] Simple webbot for... 8 hours ago AB073 AB073 Code Review
  What Are the Most Overloo... 10 hours ago shreyapatel DeaD_EyE News and Disc...
  Wish to write a code for ... Today, 06:40 Hasan2025 Hasan2025 General Codin...
  I have a question Today, 04:47 Clictithe Pedroski55 General Codin...
  How to produce a CPU load... Today, 02:19 Calab Plyth General Codin...
  Venv - Python Virtual Env... Yesterday, 02:23 DanneA Larz60+ General Codin...
  Webscraping: Attendance L... Yesterday, 02:20 ThatsMe Larz60+ Web Scraping ...
  Convert any Python expres... 06-16, 14:06 voidtrance voidtrance General Codin...
  ImportError: cannot impor... 06-16, 07:08 Anldra12 ItsTheGoose General Codin...
Most views
  The best Prog... 572238
  Tutorial Requ... 484726
  Web Scraping ... 436784
  Newbie with P... 379610
  Thread remain... 351212
Most reputation
buran 581
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 450
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12065
buran 8173
snippsat 7336
deanhystad 6838
metulburr 5151
Top referrers
Googlepro 24
python 6
metulburr 6
NonEntity 5
as1221 3
Newest members
kholdeman Today
AB073 Today
ANOUAR33 Today
gooberpat Today
Clictithe Today

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020