Python package with widget to simplify work with many processes in jupyter
Project description
Overview.
This is a library which helps working with many processes in a jupyter notebook in a very simple way.
Installation via pip:
pip install jupyter_process_manager
Usage examples
Lets say that you want to run many processes with different arguments for the function below
def test_just_wait(int_seconds):
for int_num in range(int_seconds):
print(int_num)
sleep(1)
Then to run it you just need to do the following:
from jupyter_process_manager import JupyterProcessesManager
# Create an object which will be handling processes
process_manager = JupyterProcessesManager(".")
for seconds_to_wait in range(5, 50, 5):
process_manager.add_function_to_processing(test_just_wait, seconds_to_wait)
All the processes were started and now you can check what is happening with them
Show processes output as widget
process_manager.show_jupyter_widget(
int_seconds_step=2,
int_max_processes_to_show=20
)
JupyterProcessesManager arguments
str_dir_for_output: Directory where to store processes output
is_to_delete_previous_outputs=True: Flag If you want to delete outputs for all previous processes in the directory
Usual print output
process_manager.wait_till_all_processes_are_over(int_seconds_step=2)
Links
Project local Links
Contacts
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for jupyter_process_manager-0.1.4.win-amd64.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | b16a3768931edbd58d374087a5d1d547872b5ce2796305afbecdf362dd68b9c2 |
|
MD5 | 212ecea550ea2ab8b64c6579e761e095 |
|
BLAKE2b-256 | d34d2e6830e063f5f21c01f64050eb56c630e149cc0d08e8df7908d9365a4364 |
Close
Hashes for jupyter_process_manager-0.1.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 873332c1dce8bf2d06eab3ac69b52af65b80e6ad3399f5ab2e4b606e291012d4 |
|
MD5 | 0673977530120b95de175cae17c0b845 |
|
BLAKE2b-256 | 905261afd7026fe98b835fab25b2931308d4cf83ec06d13e7095cd83e4d97d9f |