diff --git a/packages/client/hmi-client/src/components/dataset/tera-dataset-jupyter-panel.vue b/packages/client/hmi-client/src/components/dataset/tera-dataset-jupyter-panel.vue index 1bbcb8e39e..30ff9f046c 100644 --- a/packages/client/hmi-client/src/components/dataset/tera-dataset-jupyter-panel.vue +++ b/packages/client/hmi-client/src/components/dataset/tera-dataset-jupyter-panel.vue @@ -85,23 +85,28 @@ - - +
+ + + +
@@ -161,16 +166,10 @@ const jupyterSession: SessionContext = await newSession('beaker_kernel', 'Beaker const selectedKernel = ref(); const runningSessions = ref([]); -const defaultPreview = computed(() => { - let code = ''; - props.assets.forEach((asset, index) => { - code += `#d${index + 1} = ${asset.name}\n`; - }); - // add first dataset to the code - code += 'd1'; - return code; -}); +// This is used to inform the user what is in the context. +const dataContextDescription = computed(() => props.assets.map((asset, index) => `#d${index + 1} = ${asset.name}\n`)); +const defaultPreview = ref('d1'); const confirm = useConfirm(); const props = defineProps<{ @@ -518,6 +517,16 @@ const onDownloadResponse = (payload) => {