Python package with widget to simplify work with many processes in jupyter
Table of Contents
- Installation via pip:
- Usage examples
- How to create create and start processes for jupyter_process_manager
- Usage in Jupyter Notebook
- Other methods available within running processes for JPM
- Usage in a console
- Project local Links
This is a library which helps working with many processes in a jupyter notebook in a very simple way.
pip install 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.
- 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
After processes were added, you can check what is happening with them.
Showing the JupyterProcessManager widget won’t block execution so you can run the code in other cells
process_manager.add_function_to_processing( func_new, *func_new_args,**func_new_kwargs)
To stop the process, select it and press the orange button to stop it
# arguments are the same as in **add_function_to_processing(...)** process_manager.debug_run_of_1_function(func_to_process, *args, **kwargs)
from jupyter_process_manager import clear_output clear_output()
from jupyter_process_manager import read_stdout stdout_content = read_stdout()
You will see the output like shown below
This project is licensed under the MIT License.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for jupyter_process_manager-0.1.20.tar.gz
Hashes for jupyter_process_manager-0.1.20-py3-none-any.whl