Skip to content

datalayer-examples/jupyter-nextjs-example

Repository files navigation

Datalayer

Become a Sponsor

Jupyter UI for Next.js

Live example on https://jupyter-nextjs-example.vercel.app

This is a Next.js project bootstrapped with create-next-app.

Jupyter UI Next.js

Read more on the documentation website (ensure you have tne needed development environment).

Getting Started

First, run the development server.

npm i
npm run dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

Production Build

To create a production build, you first need to patch @jupyter-widgets/controls to avoid issues with early loadings via require.js.

diff --git a/node_modules/@jupyter-widgets/controls/lib/index.js b/node_modules/@jupyter-widgets/controls/lib/index.js
index 0063f69..ade0862 100644
--- a/node_modules/@jupyter-widgets/controls/lib/index.js
+++ b/node_modules/@jupyter-widgets/controls/lib/index.js
@@ -22,5 +22,5 @@ export * from './widget_tagsinput';
 export * from './widget_string';
 export * from './widget_description';
 export * from './widget_upload';
-export const version = require('../package.json').version;
+export const version = "0.1.0";
 //# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@jupyter-widgets/controls/src/index.ts b/node_modules/@jupyter-widgets/controls/src/index.ts
index 912458d..5edaa11 100644
--- a/node_modules/@jupyter-widgets/controls/src/index.ts
+++ b/node_modules/@jupyter-widgets/controls/src/index.ts
@@ -24,4 +24,4 @@ export * from './widget_string';
 export * from './widget_description';
 export * from './widget_upload';
 
-export const version = (require('../package.json') as any).version;
+export const version = "5.0.12";

You can create a static version of the application that you will find under the out folder.

npm run build
npm start

⚖️ License

Copyright (c) 2025 Datalayer, Inc.

Released under the terms of the MIT license (see LICENSE.

About

🪐 ⚛️ Jupyter Next.js Example.

Topics

Resources

Stars

Watchers

Forks