Quantcast
Browsing all 13921 articles
Browse latest View live

Vercel flask deployment error: Unable to find any supported Python versions

I want to deploy flask app on Vercelbut whenever I try to deploy it, I get this error:Error: Unable to find any supported Python versions.01:53:10.844Learn More: http://vercel.link/python-versionThis...

View Article


How to use Matplotlib to animate a turning figure in 3D

I need to turn a three-dimensional figure in matplotlib. I tried using FuncAnimation(), but, as far as I'm concerned, this thing is only useful, when the figure is expanding or shrinking, not rotating....

View Article


Auto-parse on python

I'm trying to write a script that will automatically parse product cards. I managed to cope with one page. How can I make the script automatically go to another page?I've seen several answers where...

View Article

Image may be NSFW.
Clik here to view.

How to use multiple xticks/axis labels at different orientations to group...

I have written a Python script (below) to produce a Matplotlib plot to display boxplot data grouped together by subgroups (season), groups (city), and different colors (year).However, the group (city)...

View Article

ModuleNotFoundError: Python files seem to behave differentely inside and...

Some months ago, I developed a project using PyCharm and it worked just fine. Now if I want to enter the venv venv\Scripts\activate and start the project from cmd python src\main.py, I receive...

View Article


Python for Everybody, Assignment 11.1 [closed]

Coursera Python for everybody assignment 11.1/Python Regex.import rename = input("Enter file: ") hand = open(name, 'r')sums = []for line in hand: line = line.rstrip() line = re.findall('[0-9.]+',line)...

View Article

Python Triple Quoted comments choke on too many backslashes

Python displays SyntaxWarning: invalid escape sequence '\ ' when I am drawing a tree structure in a triple quoted comment string: A / \ B C / \ \ D E F

View Article

CNN ValueError: One of the dimensions in the output is

I am working on making a DL model to predict a value. Statement goes like: we have atime vs A vs B vs C -- xls files ( multiple ones , present in Data named folder )I want to predict A using using what...

View Article


Flask Session not storing data correctly

Here's my front-end that's sending the data:async function notifyBackendAboutUpload(fileName) { try { const response = await fetch('http://127.0.0.1:5000/notify-upload', { method: 'POST', headers:...

View Article


Python arcade access object layer

ErrorI'm currently developing a platformer game with python 3.12.2, Tiled Map Editor 1.10.1 and python arcade 2.6.17 but i have seen something: when i try to access an object layer i get this...

View Article

How can I multithreadedly download a HuggingFace dataset?

I want to download a HuggingFace dataset, e.g. uonlp/CulturaX:from datasets import load_datasetds = load_dataset("uonlp/CulturaX", "en")However, it downloads on one thread at 50 MB/s, while my network...

View Article

Image may be NSFW.
Clik here to view.

Why does Visual Studio Code display some emojis wrong?

I am trying to print different emojis in python using visual studio code. However, when I print some emojis (just using print()) some (not all) emojis get displayed using the wrong width, more...

View Article

How to press 'Enter' after text input is given in the search filed in...

I am trying to write python script using WebDriver for data scrappingIn the case I am trying to open a browser, click the dropdown using xpath, then entering the 'input'(emissor_item) since the...

View Article


Error running code taking from Gymnasium tutorial

I would like to run the following code using PyCharm IDEimport gymnasium as gymenv = gym.make("LunarLander-v2", render_mode="human")observation, info = env.reset(seed=42)for _ in range(1000): action =...

View Article

Error when i try to create new row in tables (flask, sqlalchemy)

SERVER ANSWER:sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (1054, "Unknown column 'users.result_id' in 'field list'")[SQL: SELECT users.id AS users_id, users.last_name AS...

View Article


How to extract xvalues and yvalues from a kdeplot

Given that I have a seaborn.kdeplot I want to extract the x and y points. Based on similar questions I have tried the following:points = sns.kdeplot(targets, shade=True,...

View Article

Using plt.show() in python with fiure cleared

I runned my code on VSCode.import matplotlib.pyplot as plt # create and show first figure plt.plot([1, 2, 3], [4, 5, 6]) plt.show() # modifies the graph and displays it again plt.title('Updated Plot')...

View Article


Fastest method to post a pandas dataframe from Jupyter Notebooks into a Stack...

I just posted my first Stack Overflow question. I spent ages formatting a pandas dataframe table in the post. What steps do you use to post a pandas dataframe in a Stack Overflow question?I searched...

View Article

Transformation (columns into lines) of large table

I'm trying to deal with a problem at work where I need to transform a large table (950+ columns) all into lines. There are 2 caveats here:i) I want to add the "date" and "product#" to the beggining of...

View Article

In VS Code, why does it keep saying "pygame" is not accessed Pylance" and...

I'm new to VS Code, and I previously did a little coding on it on another laptop. I recently got a new one, and I don't understand why I am facing these problems, as it never occurred to me in the old...

View Article
Browsing all 13921 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>