|
16 | 16 | "source": [
|
17 | 17 | "import datetime as dt\n",
|
18 | 18 | "import sys\n",
|
19 |
| - "sys.path.append('..')\n", |
20 |
| - "!{sys.executable} -m pip install -q -r ../requirements/examples.txt\n", |
21 |
| - "\n", |
22 |
| - "# Install harmony-py requirements. Not necessary if you ran `pip install harmony-py` in your kernel \n", |
23 |
| - "!{sys.executable} -m pip install -q -r ../requirements/core.txt\n", |
| 19 | + "import helper\n", |
| 20 | + "# Install the project and 'examples' dependencies\n", |
| 21 | + "helper.install_project_and_dependencies('..', libs=['examples'])\n", |
24 | 22 | "\n",
|
25 | 23 | "from harmony import BBox, Client, Collection, LinkType, Request, s3_components, Environment"
|
26 | 24 | ]
|
|
45 | 43 | " height=512,\n",
|
46 | 44 | " width=512,\n",
|
47 | 45 | " # If desired, deliver results to a custom destination bucket. Note the bucket must reside in AWS us-west-2 region.\n",
|
48 |
| - " # destination_url='s3://my-bucket' \n", |
| 46 | + " # destination_url='s3://my-bucket'\n", |
49 | 47 | ")\n",
|
50 | 48 | "\n",
|
51 | 49 | "request.is_valid()"
|
|
102 | 100 | "outputs": [],
|
103 | 101 | "source": [
|
104 | 102 | "#\n",
|
105 |
| - "# NOTE: Execution of this cell will only succeed within the AWS us-west-2 region. \n", |
| 103 | + "# NOTE: Execution of this cell will only succeed within the AWS us-west-2 region.\n", |
106 | 104 | "#\n",
|
107 | 105 | "\n",
|
108 | 106 | "import boto3\n",
|
|
117 | 115 | ],
|
118 | 116 | "metadata": {
|
119 | 117 | "kernelspec": {
|
120 |
| - "display_name": "venv", |
| 118 | + "display_name": "Python 3 (ipykernel)", |
121 | 119 | "language": "python",
|
122 | 120 | "name": "python3"
|
123 | 121 | },
|
|
131 | 129 | "name": "python",
|
132 | 130 | "nbconvert_exporter": "python",
|
133 | 131 | "pygments_lexer": "ipython3",
|
134 |
| - "version": "3.9.2" |
| 132 | + "version": "3.11.9" |
135 | 133 | },
|
136 | 134 | "vscode": {
|
137 | 135 | "interpreter": {
|
|
0 commit comments