|
114 | 114 | "import sys\n", |
115 | 115 | "import glob\n", |
116 | 116 | "\n", |
| 117 | + "from os.path import join,expanduser,exists,split\n", |
| 118 | + "user_home_dir = expanduser('~')\n", |
| 119 | + "\n", |
117 | 120 | "\n", |
118 | 121 | "# indicate whether you are working in a cloud instance (True if yes, False otherwise)\n", |
119 | 122 | "incloud_access = True" |
|
455 | 458 | "client" |
456 | 459 | ] |
457 | 460 | }, |
458 | | - { |
459 | | - "cell_type": "code", |
460 | | - "execution_count": 4, |
461 | | - "metadata": {}, |
462 | | - "outputs": [], |
463 | | - "source": [ |
464 | | - "## Import the ecco_v4_py library into Python\n", |
465 | | - "## =========================================\n", |
466 | | - "## If ecco_v4_py is not installed in your local Python library, \n", |
467 | | - "## tell Python where to find it. The example below adds\n", |
468 | | - "## ecco_v4_py to the user's path if it is stored in the folder\n", |
469 | | - "## ECCOv4-py under the user's home directory\n", |
470 | | - "\n", |
471 | | - "from os.path import join,expanduser,exists,split\n", |
472 | | - "user_home_dir = expanduser('~')\n", |
473 | | - "\n", |
474 | | - "sys.path.append(join(user_home_dir,'ECCOv4-py'))\n", |
475 | | - "\n", |
476 | | - "import ecco_v4_py as ecco" |
477 | | - ] |
478 | | - }, |
479 | 461 | { |
480 | 462 | "cell_type": "code", |
481 | 463 | "execution_count": 5, |
|
570 | 552 | " download_root_dir=ECCO_dir)" |
571 | 553 | ] |
572 | 554 | }, |
| 555 | + { |
| 556 | + "cell_type": "code", |
| 557 | + "execution_count": 4, |
| 558 | + "metadata": {}, |
| 559 | + "outputs": [], |
| 560 | + "source": [ |
| 561 | + "## Import the ecco_v4_py library into Python\n", |
| 562 | + "## =========================================\n", |
| 563 | + "## If ecco_v4_py is not installed in your local Python library, \n", |
| 564 | + "## tell Python where to find it. The example below adds\n", |
| 565 | + "## ecco_v4_py to the user's path if it is stored in the folder\n", |
| 566 | + "## ECCOv4-py under the user's home directory\n", |
| 567 | + "\n", |
| 568 | + "sys.path.append(join(user_home_dir,'ECCOv4-py'))\n", |
| 569 | + "\n", |
| 570 | + "import ecco_v4_py as ecco" |
| 571 | + ] |
| 572 | + }, |
573 | 573 | { |
574 | 574 | "cell_type": "code", |
575 | 575 | "execution_count": 8, |
|
0 commit comments