How to plot graph in Pythonanywhere bash console using python matplotlib without saving the graph as a file
import matplotlib
matplotlib.use( Agg )
import matplotlib.pyplot as plt
I just want to crop the inner white rectangle out of the image using python. I tried it with findContours , but as the edges are not clear its not showing any better output. how to do this. can anybody help me. I am new to it.
import cv2
import...
I'm using the code below to fit an HMM model with two hidden states, a vocabulary of size 5 (so 5 possible symbols), and a list of sequences, each with 10 observations.
I don't understand why model.emissionprob_ has size (2, 10) , when the number of...
I am working on a project that involves analyzing large datasets in Python. However, I'm encountering performance issues and memory limitations when dealing with these large datasets. What are some efficient approaches or best practices for handling...
When using tensorflow, I get this warning
import tensorflow
tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation...
I have a python list of integers, each being in the range . I want to pack these values into an array of bytes that i will send down a socket connection. Since these values can be represented by 4 bits in a two's complement representation, it should...
I'm experiment with relative imports and have found very interesting case here:
$ mkdir project
$ cat >> project/one.py
from . import two
$ touch project/two.py
$ python project/one.py
Traceback (most recent call last):
File project/one.py , line...
i really hope you can help me.
It's about an architectural question, i have been reading about the past week and now getting really stuck.
I plan to build a webapp using FastAPI that receives a real-time audio stream through websocket and passes...
maybe a trivial question but i am really struggling. (Update, fixed to provide what i wanted, but very open to more efficient formulations)
i have this DF:
Base_Node Turbine_1 Turbine_2 Charging_Station_1
0 Base_Node 0.0 1.1 5.3 23.5
1 Turbine_1...
I'm trying to programmatically update configuration in EdgeOS using a python script. I'm using fabric as an ssh client.
Below ---original question--- describes the problem, but I think I've hit on the source of the issue, but not the solution....
I have the below sample application which has a couple of simple sizers which, for some reason, are centered vertically, which I dont want (see attachment). I want the wxchoice sizer to be position at the top of the window, not in the middle...
I am trying to extract price from Amazon PDb but it is not getting extracted.
Tried:
X path
CSS selector
Find all method
Found that javascript is blocking price to be scraped but that is also not working or I have not identified proper js....
I am trying to install TensorFlow on my WSL on my laptop. The general installation of pip install tensorflow its successful. But it does detect GPU on my laptop. When I test GPU on it python3 -c import tensorflow as tf;...
I have a table myuser with two columns (id serial primary, username varchar(20) unique not null). I am trying to make a Tkinter gui that takes username from a form and inserts it in the postgres table myuser.
I want to generate a warning when...
I'm using the OpenAI Python library to generate audio content from text. However, I need to process and return the audio content directly without storing it in a local file. How can I achieve this using the OpenAI library? I've thought of streaming...
For training model i am using shuffled dataset wich created so:
train_dataset = train_dataset.shuffle(BUFFER_SIZE).batch(BATCH_SIZE).prefetch(tf.data.AUTOTUNE)
but after training i want to check the prediction results with some simple test...
enter image description here
I check for a value with 'for i in list' with an if else statement. It runs the program on each indexed element individually until 'break.' Why does else run when if has been satisfied?
The example I copied only returned...
I have a problem for which I did not find a solution on the Internet and did not invent on my own.
There is an area of the room given by an array of points with X and Y coordinates, for example CGPoint(x, y) (their consecutive connection forms the...
I need to get a screenshot of the page by having the HTML of the page.
There is a list of links to VK pages, you need to get photos of correspondence from each link as quickly and efficiently as possible.
I tried using selenium to solve the...
I am working on a project that involves analyzing large datasets in Python. However, I'm encountering performance issues and memory limitations when dealing with these large datasets. What are some efficient approaches or best practices for handling...
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете добавлять вложения