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
How to create create and start processes for jupyter_process_manager
from jupyter_process_manager import JupyterProcessManager
process_manager = JupyterProcessManager(".") # "." - path where to store outputs of the processes
# And functions for processing
process_manager.add_function_to_processing(
func1, *func1_args,**func1_kwargs)
process_manager.add_function_to_processing(
func2, *func2_args,**func2_kwargs)
WARNING: Please do NOT try to use functions defined inside jupyter notebook, they won’t work.
JupyterProcessManager arguments:
str_dir_for_output: Directory where to store processes outputs
is_to_delete_previous_outputs=True: Flag If you want to delete outputs for all previous processes in the directory
Usage in Jupyter Notebook
After processes were added, you can check what is happening with them.
process_manager
Showing the JupyterProcessManager widget won’t block execution so you can run the code in other cells
How to check output for the processes
How to add more processes
process_manager.add_function_to_processing(
func_new, *func_new_args,**func_new_kwargs)
How to stop a process
To stop the process, select it and press the orange button to stop it
How to do a debug run without a new process creation
# arguments are the same as in **add_function_to_processing(...)**
process_manager.debug_run_of_1_function(func_to_process, *args, **kwargs)
Other methods available within running processes for JPM
Clear stdout output from the process
from jupyter_process_manager import clear_output
clear_output()
Get stdout output for the process
from jupyter_process_manager import read_stdout
stdout_content = read_stdout()
Usage in a console
process_manager.wait_till_all_processes_are_over()
You will see the output like shown below
Links
Project local Links
Contacts
License
This project is licensed under the MIT License.
Metadata
Release files for jupyter-process-manager 0.1.21
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| jupyter_process_manager-0.1.21.tar.gz | 14.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jupyter_process_manager-0.1.21-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.3 kB
Release files / jupyter_process_manager-0.1.21.tar.gz
| Download URL | jupyter_process_manager-0.1.21.tar.gz |
|---|---|
| Size | 14.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e179fe215cf697f8a079ba958f8e059e899448a581b10ceb9b327d01c0a9b25e
|
|
BLAKE2b-256 checksum How to use checksums |
11c72d938f477af2346c17f4f50680ae0bdd963c87359a3c0d78a689158e2301
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.12 Windows/10
|
Release files / jupyter_process_manager-0.1.21-py3-none-any.whl
| Download URL | jupyter_process_manager-0.1.21-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f94f52e31d4d9057df3c83f6f1d9ee85772ebe4b19375335302ec0f53fa4f5a5
|
|
BLAKE2b-256 checksum How to use checksums |
d673e94c31fc6e74eac034943278df21bb2384cc361e2cc14e40aa617fe9d0b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.12 Windows/10
|
Security for jupyter-process-manager 0.1.21
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.