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_func(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 wait_for_me in range(5, 50, 5):
process_manager.add_function_to_processing(test_func, wait_for_me)
All the processes were started and now you can check what is happening with them
Usual print output
process_manager.wait_till_all_processes_are_over(int_seconds_step=2)
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
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
File details
Details for the file jupyter_process_manager-0.1.3.tar.gz
.
File metadata
- Download URL: jupyter_process_manager-0.1.3.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.8.1 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c396a5244a07ea0c404fe1abf933909460f3d30fff7ca8cf60abffd41ddb04f5 |
|
MD5 | 36c1dbd94509691179e9a1745cde9f1a |
|
BLAKE2b-256 | f908ad749406811bfbedc42cd2501a4a9030c2d6f641b880e3893dabc413258b |
Provenance
File details
Details for the file jupyter_process_manager-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: jupyter_process_manager-0.1.3-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.8.1 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e9221eac8e988b5c5a3a37f90530a04ff76e0e628f6473219a147f67205690a |
|
MD5 | 43d3800e94f79c5e472ce20a2dc7a05d |
|
BLAKE2b-256 | 985831b9a133385c844fa9bf6f18438f88ea8cfc03c578f1bd164e3967fc9c8b |