interactive

Interactive python input() for IoTEdge Module

Interactive python input() for IoTEdge Module Question: I am new to python and I inherited some code that requires keyboard input by the user. When turning this into a docker container, I can easily run it locally with "-it" flag to take in my input and avoid EOF errors. while True: key = input("Please enter:n") …

Total answers: 2

Interactive Plots in Python

Interactive Plots in Python Question: How to plot interactive plots in python, I am on dataframe which is datetime indexed, I want to plot multiple columns by selecting from the wizard, on the time axis, there should be some function to behave like a date slider as well so that selecting a range in the …

Total answers: 1

How to update DataTable interactively with a callback function in dash?

How to update DataTable interactively with a callback function in dash? Question: I feel like this is a basic problem and I`ve looked through all relevant topics on SO but still can’t manage to update a simple table in dash with interactive input. Basically I have a table that contains data and want to be …

Total answers: 1

Interact and plot quiverin Python Jupyter Notebook

Interact and plot quiverin Python Jupyter Notebook Question: I would like to use the interact function to create sliders where the user would input vector coordinates and plot these coordinates. The problem is that changing the input values doesn’t make a new graph, would it be possible to make it work? I’m working with jupyter …

Total answers: 1

Interactive plot with ipyvidgets and matplotlib on binder produces static images

Interactive plot with ipyvidgets and matplotlib on binder produces static images Question: I’m trying to share a github repo on binder. Locally, my interactive plot using matplotlib and @interact works ok. On binder it works half way. Same code adds static images to the cell output in binder notebook when slider value changes. Question: how …

Total answers: 2

How to get interactive bokeh in Jupyter notebook

How to get interactive bokeh in Jupyter notebook Question: I’m gearing up towards using bokeh for an interactive online implementation of some python models I’ve written. Step 1 is understanding some basic interactive examples, but I can’t get the introductory examples running INTERACTIVELY in a Jupyter notebook. I’m hoping someone can correct my misunderstanding of …

Total answers: 1

Rotate interactively a 3D plot in python – matplotlib – Jupyter Notebook

Rotate interactively a 3D plot in python – matplotlib – Jupyter Notebook Question: I was wondering how it is possible to interactively rotate a 3D plot as described in this video (if you decide from above or underneath or from right or left). I can generated a 3D plot in spyder or in a jupyter …

Total answers: 2

Implement an interactive shell over ssh in Python using Paramiko?

Implement an interactive shell over ssh in Python using Paramiko? Question: I want to write a program (in Python 3.x on Windows 7) that executes multiple commands on a remote shell via ssh. After looking at paramikos’ exec_command() function, I realized it’s not suitable for my use case (because the channel gets closed after the …

Total answers: 2

Pandas plotting in Windows terminal

Pandas plotting in Windows terminal Question: I have a simple pandas data frame. Trying to plot from the Windows 10 terminal session of IPython gives me this: In [4]: df = pd.DataFrame({‘Y’:[1, 3, 5, 7, 9], ‘X’:[0, 2, 4, 6, 8]}) In [5]: df Out[5]: X Y 0 0 1 1 2 3 2 4 …

Total answers: 2

Get output from a Paramiko SSH exec_command continuously

Get output from a Paramiko SSH exec_command continuously Question: I am executing a long-running python script via ssh on a remote machine using paramiko. Works like a charm, no problems so far. Unfortunately, the stdout (respectively the stderr) are only displayed after the script has finished! However, due to the execution time, I’d much prefer …

Total answers: 6