diff --git a/packages/pyodide-kernel-extension/src/index.ts b/packages/pyodide-kernel-extension/src/index.ts index 1909c897..4b27e2c4 100644 --- a/packages/pyodide-kernel-extension/src/index.ts +++ b/packages/pyodide-kernel-extension/src/index.ts @@ -79,7 +79,10 @@ const kernel: JupyterLiteServerPlugin = { create: async (options: IKernel.IOptions): Promise => { const { PyodideKernel } = await import('@jupyterlite/pyodide-kernel'); - const mountDrive = !!(serviceWorker?.enabled && broadcastChannel?.enabled); + const mountDrive = !!( + (serviceWorker?.enabled && broadcastChannel?.enabled) || + crossOriginIsolated + ); if (mountDrive) { console.info('Pyodide contents will be synced with Jupyter Contents');