Skip to content

Instantly share code, notes, and snippets.

@fperez
Created February 17, 2023 20:10
Show Gist options
  • Save fperez/4aaa805706fff6fe82141a104285a7d6 to your computer and use it in GitHub Desktop.
Save fperez/4aaa805706fff6fe82141a104285a7d6 to your computer and use it in GitHub Desktop.
Bug in JupyterLab: notebook cells duplicated by RTC engine
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"id": "446fb80a-e4ef-4d2b-b116-397ed457d749",
"metadata": {
"tags": []
},
"source": [
"# Activate GitHub Authentication\n",
"\n",
"Run the cell below and follow the instructions.\n",
"\n",
"Note that if the repos you need to work aren't configured for access from this hub, you need to go to\n",
"\n",
"https://github.com/apps/stat159-berkeley-datahub-access\n",
"\n",
"and add them to your desired configuration."
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "caba2bfe-d580-4fec-a380-46cd797d6e69",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"import gh_scoped_creds\n",
"%ghscopedcreds"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "edd9735f-7441-46f0-95c1-0eaf4029da55",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "978546af",
"metadata": {
"tags": []
},
"source": [
"# Activate GitHub Authentication\n",
"\n",
"Run the cell below and follow the instructions.\n",
"\n",
"Note that if the repos you need to work aren't configured for access from this hub, you need to go to\n",
"\n",
"https://github.com/apps/stat159-berkeley-datahub-access\n",
"\n",
"and add them to your desired configuration."
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "122011f9",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"application/javascript": [
"navigator.clipboard.writeText(\"CA3C-3FE7\");"
],
"text/plain": [
"<IPython.core.display.Javascript object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"The code CA3C-3FE7 has been copied to your clipboard.\n",
"You have 15 minutes to go to https://github.com/login/device and paste it there.\n",
"\n",
"Waiting....\n"
]
},
{
"data": {
"text/html": [
"<p style=\"background-color:lightgreen;\">Success! Authentication will expire in 8.0 hours.<br /></p>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Visit https://github.com/apps/stat159-berkeley-datahub-access to manage list of repositories you can push to from this location\n",
"Tip: Use https:// URLs to clone and push to repos, not ssh URLs!\n"
]
}
],
"source": [
"import gh_scoped_creds\n",
"%ghscopedcreds"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "9eec9501",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "e7cc8ab3",
"metadata": {
"tags": []
},
"source": [
"# Activate GitHub Authentication\n",
"\n",
"Run the cell below and follow the instructions.\n",
"\n",
"Note that if the repos you need to work aren't configured for access from this hub, you need to go to\n",
"\n",
"https://github.com/apps/stat159-berkeley-datahub-access\n",
"\n",
"and add them to your desired configuration."
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "f74a725d",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"application/javascript": [
"navigator.clipboard.writeText(\"110B-16CA\");"
],
"text/plain": [
"<IPython.core.display.Javascript object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"The code 110B-16CA has been copied to your clipboard.\n",
"You have 15 minutes to go to https://github.com/login/device and paste it there.\n",
"\n",
"Waiting........\n"
]
},
{
"data": {
"text/html": [
"<p style=\"background-color:lightgreen;\">Success! Authentication will expire in 8.0 hours.<br /></p>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Visit https://github.com/apps/stat159-berkeley-datahub-access to manage list of repositories you can push to from this location\n",
"Tip: Use https:// URLs to clone and push to repos, not ssh URLs!\n"
]
}
],
"source": [
"import gh_scoped_creds\n",
"%ghscopedcreds"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "15756cc5",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "790184e3",
"metadata": {
"tags": []
},
"source": [
"# Activate GitHub Authentication\n",
"\n",
"Run the cell below and follow the instructions.\n",
"\n",
"Note that if the repos you need to work aren't configured for access from this hub, you need to go to\n",
"\n",
"https://github.com/apps/stat159-berkeley-datahub-access\n",
"\n",
"and add them to your desired configuration."
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "ea667778",
"metadata": {
"tags": []
},
"outputs": [
{
"data": {
"application/javascript": [
"navigator.clipboard.writeText(\"CA3C-3FE7\");"
],
"text/plain": [
"<IPython.core.display.Javascript object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"The code CA3C-3FE7 has been copied to your clipboard.\n",
"You have 15 minutes to go to https://github.com/login/device and paste it there.\n",
"\n",
"Waiting....\n"
]
},
{
"data": {
"text/html": [
"<p style=\"background-color:lightgreen;\">Success! Authentication will expire in 8.0 hours.<br /></p>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Visit https://github.com/apps/stat159-berkeley-datahub-access to manage list of repositories you can push to from this location\n",
"Tip: Use https:// URLs to clone and push to repos, not ssh URLs!\n"
]
}
],
"source": [
"import gh_scoped_creds\n",
"%ghscopedcreds"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "9814c85b",
"metadata": {},
"outputs": [],
"source": []
}
],
"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.10.9"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment