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):