Python version: 3.6.3 Django version: 3.0.8 I am trying to use enable Django's error reporting via email, but nothing seems to happen when I encounter a 500 err
I'm hoping to use k-means clustering to plot and return the position of each cluster's centroid. The following groups two sets of xy scatter points into 6 clust
I am using url_for in my html pages to access and display static images. I wish to connect flask static to digitalocean spaces instead of AWS S3 as explained in
This is a follow-up to my previous question here. I have a optimization model that tries to find the highest coverage of a set of probe to a sequence. I approac
If I have code like T = TypeVar('T') class MyClass(Generic[T]): @classmethod def my_func() -> T: #if T is a string: retur
Im stuck with my code. I have to build a pyramid with hash blocks the first row has to start with 2 hash blocks. Every row beneath + 1. How do I implement this
How i can concatenate multistring data in one Value (no List) with TextFSM? Command output (multistring data in Description) Interface PHY
The question was tp :write a program to find the sum of n natural numbers using while loop in python. n = int(input("Enter a number: ")) i = 1 while i<n:
i have a model course and i also have a model review and rating that allows users rate a particular course. now i want to count all the ratings on each course w
I've been trying to create a Discord self bot which posts a message in a specific channel based off a button input on another program. But I receive this error:
I trained a reinforcement learning model using a GPU instance from Lambda Labs cloud service. The library I used for training is stable_baselines3. When I try
To make a POST call to the API, I use the following script: r = requests.post( url, headers={ "Content-Type": "application/json" }, json
I am going to create an API that converts an HTML page to a PDF file. I made it using pdfkit and FastAPI. However, it saves the file to my local disk. After I s
I want the Microsoft David Voice for my pyttsx3 module. I wrote the following code. With voices[0].id it is giving Zira (Female voice) and when I use voices[1]
I have a new MacBook with the Apple M1 chipset. To install tensorflow, I follow the instructions here, i.e., installing tensorflow-metal and tensorflow-macos in
I faced a problem while adding a new field to invoice_line_ids field in account.move Actually, the field has been added but it is not saving the value whenever
I want the Microsoft David Voice for my pyttsx3 module. I wrote the following code. With voices[0].id it is giving Zira (Female voice) and when I use voices[1]
I followed the instructions on Google API quickstart Python so that I can get started quickly. I downloaded the JSON file set with the default name and as a Des
I want to calculate shap values from a sklearn pipeline with a preprocessor and a model. When i do it with the code below I get 0 for all shape_values def creat
I wanted to take two numbers as an input 5 times and then print out all their sum. it would look like enter two numbers:3 4 enter two numbers:3 5 enter two nu