Skip to content

Commit

Permalink
edwin-test
Browse files Browse the repository at this point in the history
  • Loading branch information
edwins committed Jun 10, 2024
1 parent c0af97b commit 5f9ea41
Showing 1 changed file with 32 additions and 6 deletions.
38 changes: 32 additions & 6 deletions tools/github_auth.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,26 @@
"cells": [
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"id": "35bf639e-7936-42a1-8b4b-c14af965133a",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"\u001b[0;33m!\u001b[0m First copy your one-time code: \u001b[0;1;39m5996-9D2E\u001b[0m\n",
"\u001b[0;1;39mOpen this URL\u001b[0m to continue in your web browser: https://github.com/login/device\n",
"\u001b[0;32m✓\u001b[0m Authentication complete.\n",
"- gh config set -h github.com git_protocol https\n",
"\u001b[0;32m✓\u001b[0m Configured git protocol\n",
"\u001b[0;33m!\u001b[0m Authentication credentials saved in plain text\n",
"\u001b[0;32m✓\u001b[0m Logged in as \u001b[0;1;39medwins\u001b[0m\n",
"yes: standard output: Broken pipe\n"
]
}
],
"source": [
"import os\n",
"\n",
Expand All @@ -17,21 +33,31 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"id": "fe0d14ad-b41e-4ddc-b6da-035218c2a7b6",
"metadata": {},
"outputs": [],
"source": [
"# Only run this after you have logged in to github using the link above\n",
"!git config --global credential.helper '!gh auth git-credential'"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "1e1e6624-c27f-4830-a577-cc374104142d",
"metadata": {},
"outputs": [],
"source": [
"print (\"test\")"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "hyr-sense",
"language": "python",
"name": "python3"
"name": "hyr-sense"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -43,7 +69,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.2"
"version": "3.10.14"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 5f9ea41

Please sign in to comment.