Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for kekā
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #287845 |
Post edited: fixed the code in the 2nd snippet to working condition |
— | about 1 year ago |
Edit | Post #287847 |
Post edited: |
— | about 1 year ago |
Edit | Post #287847 | Initial revision | — | about 1 year ago |
Answer | — |
A: Python Parallel plotting and and input reading After moving the plotting `while` loop in the second edit inside `with` context manager and declaring `stopflag` as a global variable inside `fetchinput` it worked as expected. Lessons learned: 1. Use main thread for GUI/graphs 2. `with concurrent.futures.ThreadPoolExecutor() as executor:` join... (more) |
— | about 1 year ago |
Edit | Post #287845 |
Post edited: |
— | about 1 year ago |
Edit | Post #287845 | Initial revision | — | about 1 year ago |
Question | — |
Python Parallel plotting and and input reading Hello everyone, I am seeking help with understanding why multithreading does not work correctly in this example: ```python import time import matplotlib.pyplot as plt import concurrent.futures voltage = list() stopflag = False fig, ax = plt.subplots() fig.show() def plotter(ax, arr)... (more) |
— | about 1 year ago |