{ "cells": [ { "cell_type": "markdown", "id": "611a7264", "metadata": {}, "source": [ "# Connection Examples" ] }, { "cell_type": "markdown", "id": "a28b0625", "metadata": {}, "source": [ "This notebook shows you the different ways to try to connect to MorphoNet\n", "\n", "\n", "\n", "\n", "Using login and password\n", "\n" ] }, { "cell_type": "code", "execution_count": 1, "id": "73114a60", "metadata": {}, "outputs": [], "source": [ "import morphonet\n", "from morphonet.tools import load_credentials" ] }, { "cell_type": "code", "execution_count": null, "id": "a8430cdd", "metadata": {}, "outputs": [], "source": [ "mn_login=\"login\"\n", "mn_password=\"password\"\n", "mn=morphonet.Net(mn_login,mn_password)" ] }, { "cell_type": "markdown", "id": "6f01f7a8", "metadata": {}, "source": [ "Using a config file\n", "\n" ] }, { "cell_type": "code", "execution_count": null, "id": "fe03d3c6", "metadata": {}, "outputs": [], "source": [ "json_path = \"DATASET/credentials.json\"\n", "mn_login,mn_password = load_credentials(json_path)\n", "mn2 = morphonet.Net(mn_login,mn_password)" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.9.7" } }, "nbformat": 4, "nbformat_minor": 5 }