1,870 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
61
views
Manim interaction problems with keeping updating with no keyboard interaction
I wanted to achieve the goal that creating a circle which keeps attracting the mouse cursor with no keyboard keypress hinting. Nevertheless, according to Benjamin Hackl, I only found that Manim CE ...
0
votes
1
answer
38
views
Make ipywidget.interact take ndarray arguments
I couldn't find exactly my scenario in other questions, please redirect me if you see fit but:
I have a function with args with variable length, which i check inside and take different actions based ...
0
votes
0
answers
65
views
How to make an interactive console version in Java for a simple linear regression model?
I’m trying to create a simple model in Java that predicts marks based on study hours (using a basic linear regression formula).
My goal is to make it interactive — where the user can enter the number ...
2
votes
3
answers
444
views
How can I execute a Python script in the REPL interpreter mode and get the exactly same output as if it was manually typed in? (Ubuntu, Python 3.12)
The Python interpreter can be run either in script or interactive/REPL mode.
I do have a Python script as text file but want to run it as if it was manually typed in in the interactive/REPL mode.
I ...
0
votes
0
answers
68
views
Is there a way to accept user input in R on Replit?
I've developed an R program to help comic collectors organize and sort their collections on Replit. If the user uploads a Google Doc of their collection, the program can print out basic descriptive ...
3
votes
2
answers
69
views
Start interactive bash with predefined choice but saving interactivity
Simplest interactive script to search inside a log
#!/bin/bash
# Starting - sh /tmp/czr.sh
printf "1 - Option 1\n2 - Option 2\n";
read -r select
if [ $select = "1" ] ; then
...
1
vote
0
answers
55
views
How to render an svg of simplified top-down view buildings as interactable shapes on InteractiveViewer on Flutter/Dart
I am trying to create an interactive map of a campus, I'm trying to figure out how to render this (placeholder) SVG I made by tracing some buildings on google maps, and making it interactive. I want ...
1
vote
1
answer
79
views
Dynamic read-only attributes in python instances
EDIT This code contains several bugs, see jsbueno's answer below for a correct version
I would like to create read-only attributes that dynamically retrieve values from an internal dictionary. I have ...
0
votes
0
answers
54
views
VS Code python debug interactive session
In Visual Studio Code, when debugging a python code (.py), is it possible to start an interactive session window interact with the program in that window?
It is suggested to "Add #%% at the top ...
0
votes
1
answer
154
views
Any alternatives to matplotlib 'WebAgg' in VSCode for interactive figures?
I'm writing a script where you need to click on certain points on a figure, which I understand isn't possible within VSCode itself. I've been using matplotlib 'WebAgg' for a bit now, but it only works ...
1
vote
1
answer
404
views
Looking for simple way to persist scoped service state from Prerender phase to Interactive phase
I am in the process of converting a .NET 6 Blazor Server app to a .NET 8 Blazor Web app.
Our app relies heavily on a scoped service to make data, obtained from the HttpContext of the initial page ...
0
votes
3
answers
187
views
Why does matplotlib draw updates for the first interactive plot I show, but not the second?
I'm trying to show two interactive plots. The second plot is displayed after the first plot is closed. In this minimal example, the interactive part just draws a dot wherever the user clicks and ...
0
votes
1
answer
89
views
Error: "patch does not apply" when manually editing diff
I have the following git diff for Python code:
@@ -520,7 +520,7 @@ class AreaManager:
self.broadcast_ooc(
f"[{client.id}] {client.showname} ({client.name}) is GM in this hub ...
0
votes
0
answers
30
views
No new plot after interacting with matplotlib slider
So first, here is my code:
%matplotlib ipympl
import numpy as np
import scipy as sp
import matplotlib.pyplot as plt
from matplotlib.widgets import Slider, Button
def ODE_r(x, t, params):
r, d1t_r =...
0
votes
0
answers
77
views
Interactive Map in Kivy
I am trying to put an interactive and editable map using kivy in Python. However, I dont want the typical map that comes using kivy garden and map view, I would like to get a black and White map that ...