Skip to main content

All Questions

Tagged with
37 votes
4 answers
59k views

How do I write a sequence of promises in Python?

Is it possible to write a sequence of promise (or tasks) using only Python 3.6.1 Standard Library? For example, a sequence promises in JavaScript is written as: const SLEEP_INTERVAL_IN_MILLISECONDS =...
0 votes
0 answers
18 views

tensorflowjs_converter utility adds suffixes to variable names that cause errors

I am trying to use tensorflowjs_converter to convert a model that I am training in python (using tensorflow) to a JSON layers format so that I can run it on the web. I installed the latest version, ...
0 votes
1 answer
237 views

How to implement a html file into a python tkinter window?

so i wanted to implement my html webpage project into a python tkinter window, using tkinter html view. but when i attempted to do exactly that, i get this (python tkinter window) what im geting but ...
0 votes
2 answers
492 views

How can I locate element inside several shadow-roots

I need help locating the Xpath or CSS Selector of the download JSON button on this page. https://data.ntsb.gov/carol-main-public/query-builder?month=12&year=1962 I copied the selector via Chrome ...
0 votes
2 answers
40 views

Banner is not displaying at the top and css is not working

I have html like following, in my Django project <!DOCTYPE html> {% load static %} <html lang="en"> <head> <meta charset="UTF-8"> <meta name=&...
0 votes
0 answers
15 views

styled-components no longer works with react-native: "0.72.2"

{ "name": "teste", "version": "1.0.0", "main": "index.js", "scripts": { "start": "expo start --dev-client", &...
1 vote
1 answer
41 views

FastAPI: How to handle Plotly graph click events in a web application?

I am using FastAPI to create a simple web app where I want to render a Plotly graph and record the (x, y) values when the graph is clicked. I am exporting the graph and then trying to set up an event ...
0 votes
0 answers
23 views

Uncaught runtime errors: ERROR dispatcher is null

Trying to use chart.js, but everytime i try fetch the data it throws me 'Uncaught runtime errors: ERROR dispatcher is null' this error. The page doesn't render at all, everything on there is gone, ...
8 votes
2 answers
582 views

Would it be possible in Javascript or Python to implement something like "non standard evaluation" in R?

In R you can write functions that allow arguments to be unquoted attributes of a pre-defined object. For example, the interface to the DataFrame object allows the following: # df has columns "A" and "...
0 votes
1 answer
38 views

Problems with changing the status from pending to rejected/approved

I do not know much about js, but I tried to submit the data by clicking on the button. The project is about approve or reject orders in the panel of the owner of the shop. Things in Django admin went ...
1 vote
2 answers
363 views

Getting a 422 error response when calling FastAPI backend with a GET request using Axios HTTP Client

I'm trying to make a GET request from my Vue3 client (using axios JavaScript HTTP client) to a FastAPI server and I´m getting a 422 unprocessable entity error response. As I understand, this kind of ...
1 vote
0 answers
37 views

Backend audio chunks aren't playing correctly when I pass them to client

First, I apologize if anything is spelled incorrectly or if I don't explain myself clearly enough as english is not my first languale. Now to the problem. I am both starting to work with OpenAI API ...
1 vote
0 answers
66 views

Trying to show shapefile in folium through javascript

I have a shapefile with postal codes in Belgium. In addition I have a distance-matrix from store-locations of one brand to all postal-codes. I managed to add markers to my map in PyQt5 QMainWindow ...
-8 votes
0 answers
33 views

im trying to make a python post request but i end up getting a java scrip error from the site can anyone help me please [closed]

im trying to make a post request and the web site give me this error : Requires JavaScript to sign in. This web browser either does not support JavaScript, or scripts are being blocked. how can i fix ...
-2 votes
0 answers
44 views

Get local variables from scope

Just need to read remotely local vars from Scope, using Chrome Dev Tools. That Scope of variables we can see when debug using Google Chrome F12 Tab. I need to automate it, using Python, when I pause ...

15 30 50 per page
1
2 3 4 5
1227