From 617af38f8c62835a85b3dc5c0a1f0b0569927686 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 2 Nov 2021 15:26:19 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Rename=20container=20to=20"Jupyt?= =?UTF-8?q?er=20(Sophon)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0014_alter_notebook_container_image.py | 18 ++++++++++++++++++ backend/sophon/notebooks/models.py | 9 +-------- .../components/notebook/NotebookCreateBox.tsx | 2 +- 3 files changed, 20 insertions(+), 9 deletions(-) create mode 100644 backend/sophon/notebooks/migrations/0014_alter_notebook_container_image.py diff --git a/backend/sophon/notebooks/migrations/0014_alter_notebook_container_image.py b/backend/sophon/notebooks/migrations/0014_alter_notebook_container_image.py new file mode 100644 index 0000000..0e90bff --- /dev/null +++ b/backend/sophon/notebooks/migrations/0014_alter_notebook_container_image.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.8 on 2021-11-02 14:25 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ('notebooks', '0013_alter_notebook_container_image'), + ] + + operations = [ + migrations.AlterField( + model_name='notebook', + name='container_image', + field=models.CharField(choices=[('ghcr.io/steffo99/sophon-jupyter', 'Jupyter (Sophon)')], default='steffo45/jupyterlab-docker-sophon', + help_text='The Docker image to run for this notebook.', max_length=256, verbose_name='Docker image'), + ), + ] diff --git a/backend/sophon/notebooks/models.py b/backend/sophon/notebooks/models.py index c2846a3..3edce99 100644 --- a/backend/sophon/notebooks/models.py +++ b/backend/sophon/notebooks/models.py @@ -76,14 +76,7 @@ class Notebook(SophonGroupModel): # Remember to make a migration when changing this! IMAGE_CHOICES = ( - # ("jupyter/base-notebook", "Base"), - # ("jupyter/minimal-notebook", "Python"), - # ("jupyter/scipy-notebook", "Python (Scientific)"), - # ("jupyter/tensorflow-notebook", "Python (Tensorflow)"), - # ("jupyter/r-notebook", "Python + R"), - # ("jupyter/pyspark-notebook", "Python (Scientific) + Apache Spark"), - # ("jupyter/all-spark-notebook", "Python (Scientific) + Scala + R + Apache Spark"), - ("ghcr.io/steffo99/sophon-jupyter", "Python (Sophonic)"), + ("ghcr.io/steffo99/sophon-jupyter", "Jupyter (Sophon)"), ) container_image = models.CharField( diff --git a/frontend/src/components/notebook/NotebookCreateBox.tsx b/frontend/src/components/notebook/NotebookCreateBox.tsx index 81aa889..ed9f55c 100644 --- a/frontend/src/components/notebook/NotebookCreateBox.tsx +++ b/frontend/src/components/notebook/NotebookCreateBox.tsx @@ -90,7 +90,7 @@ export function NotebookCreateBox({viewSet, resource}: NotebookCreateBoxProps):