Skip to content

Commit

Permalink
fixed formatting in session sharing notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksMat committed May 27, 2022
1 parent 861fabe commit d4335fc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/session_sharing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
"\n",
"A new session would be created if before running the above cell you do anything of the following:\n",
"\n",
"\n",
"- restart the Jupyter notebook's kernel,\n",
"- change OAuth credentials in the `config` object that is used to initialize the client,\n",
"- wait until the current session expires (about 1 hour),\n",
Expand Down Expand Up @@ -271,6 +272,7 @@
"\n",
"Different types of parallelization provide different support for memory sharing between processes. However, the following would be the most general description of the session sharing procedure:\n",
"\n",
"\n",
"1. Create a single authentication session.\n",
"2. Start a separate thread that is continuously running the following 2-step procedure:\n",
" * extract a session token and send it to a shared memory space,\n",
Expand Down Expand Up @@ -343,6 +345,7 @@
"\n",
"In this chapter we'll provide implementations for `3` commonly used parallelization frameworks in Python:\n",
"\n",
"\n",
"- [Standard Python multiprocessing](https://docs.python.org/3/library/multiprocessing.html),\n",
"- [Ray](https://www.ray.io/),\n",
"- [Dask](https://dask.org/).\n",
Expand All @@ -351,7 +354,7 @@
"\n",
"### Standard Python multiprocessing\n",
"\n",
"For parallelization with the framework from the Standard Python Library (modules `multiprocessing` or `concurrent.futures`) we already provide utilities in `sentinelhub-py` that implement the process defined in the previous chapter. The authentication token is passed to other processes using [`multiprocessing.shared_memory`](https://docs.python.org/3/library/multiprocessing.shared_memory.html) functionality.\n"
"For parallelization with the framework from the Standard Python Library (modules `multiprocessing` or `concurrent.futures`) we already provide utilities in `sentinelhub-py` that implement the process defined in the previous chapter. The authentication token is passed to other processes using [<code>multiprocessing.shared_memory</code>](https://docs.python.org/3/library/multiprocessing.shared_memory.html) functionality.\n"
]
},
{
Expand Down Expand Up @@ -484,7 +487,7 @@
"id": "animal-raise",
"metadata": {},
"source": [
"An implementation of this process for a use case of downloading data from [Sentinel Hub Process API](https://docs.sentinel-hub.com/api/latest/api/process/) can be seen in [`eo-grow`](https://eo-grow.readthedocs.io/en/latest/) framework, which in combination with [`eo-learn`](https://eo-learn.readthedocs.io/en/latest/) heavily relies on Ray for large-scale processing.\n",
"An implementation of this process for a use case of downloading data from [Sentinel Hub Process API](https://docs.sentinel-hub.com/api/latest/api/process/) can be seen in [<code>eo-grow</code>](https://eo-grow.readthedocs.io/en/latest/) framework, which in combination with [<code>eo-learn</code>](https://eo-learn.readthedocs.io/en/latest/) heavily relies on Ray for large-scale processing.\n",
"\n",
"### Dask\n",
"\n",
Expand Down

0 comments on commit d4335fc

Please sign in to comment.