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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,251
» Latest member: ftk456
» Forum threads: 38,780
» Forum posts: 175,822

Full Statistics

Online Users
There are currently 46 online users.
» 1 Member(s) | 43 Guest(s)
Bing, Google, neovibeus4Dip

Latest Threads
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
1 hour ago
» Replies: 2
» Views: 40
New to python and coding
Forum: Homework
Last Post: jefsummers
9 hours ago
» Replies: 4
» Views: 114
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
11 hours ago
» Replies: 6
» Views: 199
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Yesterday, 09:52 AM
» Replies: 11
» Views: 325
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
Yesterday, 05:07 AM
» Replies: 5
» Views: 286
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 115
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,624
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 216
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 199
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 376,384

 
  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

  Code for Crowdstrike
Posted by: snicol - Oct-16-2024, 03:05 PM - Forum: General Coding Help - Replies (3)

Hi

I'm very new to python

I found a python code on github to get information on crowdstrike but it happens that a value is null: “I think it is..... More


Attached Files

Thumbnail(s)
   
Print this item

  Tkinter fading bubble text
Posted by: menator01 - Oct-16-2024, 12:35 PM - Forum: Code sharing - Replies (1)

Was just playing around with popup bubble text. Cant seem to get more than one at a time to popup but, all will popup after the one before fades.
All..... More

Print this item

  [SOLVED] [Linux] Write file and change owner?
Posted by: Winfried - Oct-16-2024, 12:27 PM - Forum: General Coding Help - Replies (6)

Hello,

In a script in Linux, I need to write a text file, and then change its owner. The script will run as a cron job.

The following script doe..... More

Print this item

  python
Posted by: thetmsim - Oct-16-2024, 09:54 AM - Forum: Homework - Replies (1)

Problem Statement: Calculate the Average of Numbers

Write a Python program that:

Asks the user to enter five numbers.
Stores these numbers in a..... More

Print this item

  Web app with DB Crud can't pip install flask-mysqldb
Posted by: TheTiger - Oct-16-2024, 02:47 AM - Forum: Web Scraping & Web Development - Replies (4)

Hello Python Community

I'm following a Tutorial for making a Python web app with a CRUD. It requires to install flask (Ok!) and flask-mysqldb(which..... More

Print this item

  Dice detection using DBSCAN
Posted by: Termiik - Oct-15-2024, 09:50 PM - Forum: General Coding Help - Replies (4)

Hi there,

I'm trying to make dice detection system using a Raspberry with a camera. I want to use the live video feed for this.

Now I'm able to ..... More


Attached Files

Thumbnail(s)
   
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  why is the image not show... 1 hour ago sarbogast deanhystad General Codin...
  New to python and coding 9 hours ago lary_p jefsummers Homework
  Help with Serial.write in... 11 hours ago racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... Yesterday, 09:52 tsgiannis tsgiannis GUI
  Backward compatibility qu... Yesterday, 05:07 yutaozhou Gribouillis News and Disc...
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
Most views
  The best Prog... 578865
  Tutorial Requ... 509981
  Web Scraping ... 441924
  Newbie with P... 385935
  New Users Int... 376384
Most reputation
buran 581
snippsat 510
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12107
buran 8195
snippsat 7388
deanhystad 6908
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
ftk456 Today
sarbogast Today
bmurray Today
kai_cow2710 Today
Kacper Yesterday

User Panel Messages

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