Skip to content

Commit

Permalink
Breaking change: context props renaming fixes #260 (#261)
Browse files Browse the repository at this point in the history
* breaking change: context props renaming fixes #260

* fix: jupyterServerToken

* lint
  • Loading branch information
echarles authored Jul 6, 2024
1 parent 9d9c45f commit 53f2cd6
Show file tree
Hide file tree
Showing 48 changed files with 154 additions and 238 deletions.
5 changes: 2 additions & 3 deletions attic/prosemirror/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
<title>Jupyter ProseMirror</title>
<script id="datalayer-config-data" type="application/json">
{
"jupyterServerHttpUrl": "https://oss.datalayer.run/api/jupyter-server",
"jupyterServerWsUrl": "wss://oss.datalayer.run/api/jupyter-server",
"jupyterToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
"jupyterServerUrl": "https://oss.datalayer.run/api/jupyter-server",
"jupyterServerToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
}
</script>
<link rel="shortcut icon" href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAC7SURBVFiF7ZU9CgIxEIXfTHbPopfYc+pJ9AALtmJnZSOIoJWFoCTzLHazxh/Ebpt5EPIxM8XXTCKTxYyMCYwJFhOYCo4JFiMuu317PZwaqEBUIar4YMmskL73DytGjgu4gAt4PDJdzkkzMBloBhqBgcu69XW+1I+rNSQESNDuaMEhdP/Fj/7oW+ACLuACHk/3F5BAfuMLBjm8/ZnxNvNtHmY4b7Ztut0bqStoVSHfWj9Z6mr8LXABF3CBB3nvkDfEVN6PAAAAAElFTkSuQmCC" type="image/x-icon" />
Expand Down
2 changes: 1 addition & 1 deletion attic/prosemirror/src/raw/nodes/cell/CellView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class CellView implements NodeView {
startDefaultKernel: true,
defaultKernelName: "python",
});
const serverSettings = createServerSettings(config.jupyterServerHttpUrl, config.jupyterServerWsUrl);
const serverSettings = createServerSettings(config.jupyterServerUrl);
const widget = new CellAdapter({
source: "print('hello')",
serverSettings,
Expand Down
3 changes: 1 addition & 2 deletions attic/prosemirror/src/raw/nodes/output/OutputView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ class OutputView implements NodeView {
defaultKernelName: "python",
});
const serverSettings = createServerSettings(
config.jupyterServerHttpUrl,
config.jupyterServerWsUrl,
config.jupyterServerUrl,
);
const kernelManager = new KernelManager({
serverSettings,
Expand Down
5 changes: 2 additions & 3 deletions docs/docs/components/cell/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ This component displays a Jupyter Cell.

```jsx
<Jupyter
jupyterServerHttpUrl="https://oss.datalayer.run/api/jupyter-server"
jupyterServerWsUrl="wss://oss.datalayer.run/api/jupyter-server"
jupyterToken="60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
jupyterServerUrl="https://oss.datalayer.run/api/jupyter-server"
jupyterServerToken="60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
>
<Cell />
</Jupyter>
Expand Down
10 changes: 4 additions & 6 deletions docs/docs/components/console/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,16 @@ This component displays a Jupyter Console.

```jsx
<Jupyter
jupyterServerHttpUrl="https://oss.datalayer.run/api/jupyter-server"
jupyterServerWsUrl="wss://oss.datalayer.run/api/jupyter-server"
jupyterToken="60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
jupyterServerUrl="https://oss.datalayer.run/api/jupyter-server"
jupyterServerToken="60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
>
<Console />
</Jupyter>
```

You can set the following props to connect it to a running Jupyter Server:
- `jupyterServerHttpUrl`: The server URL
- `jupyterServerWsUrl`: The server websocket URL
- `jupyterToken`: The server authentication token
- `jupyterServerUrl`: The server URL
- `jupyterServerToken`: The server authentication token

> Your server will likely need to accept connection from external client.
Expand Down
5 changes: 2 additions & 3 deletions docs/docs/components/context/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ The Jupyter Context has the following properties.
- `collaborative`
- `defaultKernelName`
- `injectableStore`: Read more about the [State](/docs/state)
- `jupyterServerHttpUrl` - Read also [Deployment](/docs/deployments/jupyter-server)
- `jupyterServerWsUrl` - Read also [Deployment](/docs/deployments/jupyter-server)
- `jupyterToken` - Read also [Deployment](/docs/deployments/jupyter-server)
- `jupyterServerUrl` - Read also [Deployment](/docs/deployments/jupyter-server)
- `jupyterServerToken` - Read also [Deployment](/docs/deployments/jupyter-server)
- `lite`
- `loadJupyterCss`
- `startDefaultKernel`
Expand Down
10 changes: 4 additions & 6 deletions docs/docs/components/notebook/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,16 @@ The available properties for the Notebook component are available on this [TypeD

```jsx
<Jupyter
jupyterServerHttpUrl="https://oss.datalayer.run/api/jupyter-server"
jupyterServerWsUrl="wss://oss.datalayer.run/api/jupyter-server"
jupyterToken="60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
jupyterServerUrl="https://oss.datalayer.run/api/jupyter-server"
jupyterServerToken="60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
>
<Notebook />
</Jupyter>
```

You can set the following props to connect it to a running Jupyter Server:
- `jupyterServerHttpUrl`: The server URL
- `jupyterServerWsUrl`: The server websocket URL
- `jupyterToken`: The server authentication token
- `jupyterServerUrl`: The server URL
- `jupyterServerToken`: The server authentication token

> Your server will likely need to accept connection from external client.
Expand Down
5 changes: 2 additions & 3 deletions docs/docs/demos/cell/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ Type your code in the below cell and hit `SHIFT+ENTER` to execute your code.
:::

<JupyterCell
serverHttpUrl='https://oss.datalayer.run/api/jupyter-server'
serverWsUrl='wss://oss.datalayer.run/api/jupyter-server'
token='60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6'
jupyterServerUrl='https://oss.datalayer.run/api/jupyter-server'
jupyterServerToken='60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6'
source= {`import numpy as np
import matplotlib.pyplot as plt
x1 = np.linspace(0.0, 5.0)
Expand Down
10 changes: 4 additions & 6 deletions docs/docs/deployments/jupyter-server/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ Those properties can be provided in the [Jupyter Context](/docs/components/conte
<head>
<script id="datalayer-config-data" type="application/json">
{
"jupyterServerHttpUrl": "http://localhost:8686/api/jupyter-server",
"jupyterServerWsUrl": "ws://localhost:8686/api/jupyter-server",
"jupyterToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
"jupyterServerUrl": "http://localhost:8686/api/jupyter-server",
"jupyterServerToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
}
</script>
</head>
Expand All @@ -23,9 +22,8 @@ The values defined in the host HTML are taking precedence on the values set in t

```ts
<Jupyter
"jupyterServerHttpUrl": "http://localhost:8686/api/jupyter-server"
"jupyterServerWsUrl": "ws://localhost:8686/api/jupyter-server"
"jupyterToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
"jupyterServerUrl": "http://localhost:8686/api/jupyter-server"
"jupyterServerToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
>
<Notebook/>
</Jupyter>
Expand Down
5 changes: 2 additions & 3 deletions docs/docs/develop/develop/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@ Additionally, you can to define in the head section your host index HTML page in
```html
<script id="datalayer-config-data" type="application/json">
{
"jupyterServerHttpUrl": "https://oss.datalayer.run/api/jupyter-server",
"jupyterServerWsUrl": "wss://oss.datalayer.run/api/jupyter-server",
"jupyterToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
"jupyterServerUrl": "https://oss.datalayer.run/api/jupyter-server",
"jupyterServerToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
}
</script>
```
Expand Down
5 changes: 2 additions & 3 deletions docs/docs/examples/cra/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@ You need to add in the `<head/>` section of `public/index.html` the metadata to
```html
<script id="datalayer-config-data" type="application/json">
{
"jupyterServerHttpUrl": "https://oss.datalayer.run/api/jupyter-server",
"jupyterServerWsUrl": "wss://oss.datalayer.run/api/jupyter-server",
"jupyterToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
"jupyterServerUrl": "https://oss.datalayer.run/api/jupyter-server",
"jupyterServerToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
}
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
Expand Down
5 changes: 2 additions & 3 deletions docs/src/theme/ReactLiveScope/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ const Cell = (props: any) => {
return (
<>
<Jupyter
jupyterServerHttpUrl="https://oss.datalayer.run/api/jupyter-server"
jupyterServerWsUrl="wss://oss.datalayer.run/api/jupyter-server"
jupyterToken="60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
jupyterServerUrl="https://oss.datalayer.run/api/jupyter-server"
jupyterServerToken="60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
disableCssLoading={true}
skeleton={<ContentLoader/>}
>
Expand Down
5 changes: 2 additions & 3 deletions examples/cra/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@

<script id="datalayer-config-data" type="application/json">
{
"jupyterServerHttpUrl": "https://oss.datalayer.run/api/jupyter-server",
"jupyterServerWsUrl": "wss://oss.datalayer.run/api/jupyter-server",
"jupyterToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
"jupyterServerUrl": "https://oss.datalayer.run/api/jupyter-server",
"jupyterServerToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
}
</script>
<script id="jupyter-config-data" type="application/json">
Expand Down
5 changes: 2 additions & 3 deletions examples/docusaurus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ import JupyterCell from '@theme/JupyterCell';
for i in range(10):
print(i)
`}
token='60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6'
serverHttpUrl='http://localhost:8686/api/jupyter-server'
serverWsUrl='ws://localhost:8686/api/jupyter-server'
jupyterServerUrl='http://localhost:8686/api/jupyter-server'
jupyterServerToken='60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6'
/>
```
5 changes: 2 additions & 3 deletions examples/docusaurus/docs/intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ ax2.plot(x2, y2, '.-')
ax2.set_xlabel('time (s)')
ax2.set_ylabel('Undamped')
plt.show()`}
token='60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6'
serverHttpUrl='http://localhost:8686/api/jupyter-server'
serverWsUrl='ws://localhost:8686/api/jupyter-server'
jupyterServerUrl='http://localhost:8686/api/jupyter-server'
jupyterServerToken='60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6'
/>

## Getting Started
Expand Down
5 changes: 2 additions & 3 deletions examples/lexical/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
<title>Jupyter UI for Lexical Example</title>
<script id="datalayer-config-data" type="application/json">
{
"jupyterServerHttpUrl": "https://oss.datalayer.run/api/jupyter-server",
"jupyterServerWsUrl": "wss://oss.datalayer.run/api/jupyter-server",
"jupyterToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
"jupyterServerUrl": "https://oss.datalayer.run/api/jupyter-server",
"jupyterServerToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
}
</script>
<link rel="shortcut icon" href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAC7SURBVFiF7ZU9CgIxEIXfTHbPopfYc+pJ9AALtmJnZSOIoJWFoCTzLHazxh/Ebpt5EPIxM8XXTCKTxYyMCYwJFhOYCo4JFiMuu317PZwaqEBUIar4YMmskL73DytGjgu4gAt4PDJdzkkzMBloBhqBgcu69XW+1I+rNSQESNDuaMEhdP/Fj/7oW+ACLuACHk/3F5BAfuMLBjm8/ZnxNvNtHmY4b7Ztut0bqStoVSHfWj9Z6mr8LXABF3CBB3nvkDfEVN6PAAAAAElFTkSuQmCC" type="image/x-icon" />
Expand Down
5 changes: 2 additions & 3 deletions examples/next-js/src/components/CellComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ export const CellComponent = (props: CellComponentProps) => {
<>
<div style={{fontSize: 20}}>Jupyter Cell in Next.js</div>
<Jupyter
jupyterServerHttpUrl="https://oss.datalayer.run/api/jupyter-server"
jupyterServerWsUrl="wss://oss.datalayer.run/api/jupyter-server"
jupyterToken="60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
jupyterServerUrl="https://oss.datalayer.run/api/jupyter-server"
jupyterServerToken="60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
colorMode={colorMode}
theme={theme}
>
Expand Down
5 changes: 2 additions & 3 deletions examples/next-js/src/components/NotebookComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ export const NotebookComponent = (props: NotebookComponentProps) => {
<>
<div style={{fontSize: 20}}>Jupyter Notebook in Next.js</div>
<Jupyter
jupyterServerHttpUrl="https://oss.datalayer.run/api/jupyter-server"
jupyterServerWsUrl="wss://oss.datalayer.run/api/jupyter-server"
jupyterToken="60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
jupyterServerUrl="https://oss.datalayer.run/api/jupyter-server"
jupyterServerToken="60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
colorMode={colorMode}
theme={theme}
>
Expand Down
5 changes: 2 additions & 3 deletions examples/slate/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
<div id="datalayer-jss-insertion-point"></div>
<script id="datalayer-config-data" type="application/json">
{
"jupyterServerHttpUrl": "https://oss.datalayer.run/api/jupyter-server",
"jupyterServerWsUrl": "wss://oss.datalayer.run/api/jupyter-server",
"jupyterToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
"jupyterServerUrl": "https://oss.datalayer.run/api/jupyter-server",
"jupyterServerToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
}
</script>
<link rel="shortcut icon" href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAC7SURBVFiF7ZU9CgIxEIXfTHbPopfYc+pJ9AALtmJnZSOIoJWFoCTzLHazxh/Ebpt5EPIxM8XXTCKTxYyMCYwJFhOYCo4JFiMuu317PZwaqEBUIar4YMmskL73DytGjgu4gAt4PDJdzkkzMBloBhqBgcu69XW+1I+rNSQESNDuaMEhdP/Fj/7oW+ACLuACHk/3F5BAfuMLBjm8/ZnxNvNtHmY4b7Ztut0bqStoVSHfWj9Z6mr8LXABF3CBB3nvkDfEVN6PAAAAAElFTkSuQmCC" type="image/x-icon" />
Expand Down
3 changes: 1 addition & 2 deletions examples/slate/src/example/JupyterExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ const JupyterExample = () => {
<CacheProvider value={cache}>
<StylesProvider jss={jss}>
<Jupyter
// jupyterServerHttpUrl="http://localhost:3266/api/jupyter-server"
// jupyterServerWsUrl="ws://localhost:3266/api/jupyter-server"
// jupyterServerUrl="http://localhost:3266/api/jupyter-server"
collaborative={false}
terminals={false}
>
Expand Down
5 changes: 2 additions & 3 deletions packages/docusaurus-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ import JupyterCell from '@theme/JupyterCell';
for i in range(10):
print(i)
`}
token='60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6'
serverHttpUrl='http://localhost:8686/api/jupyter-server'
serverWsUrl='ws://localhost:8686/api/jupyter-server'
jupyterServerUrl='http://localhost:8686/api/jupyter-server'
jupyterServerToken='60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6'
/>
```

Expand Down
15 changes: 10 additions & 5 deletions packages/docusaurus-plugin/src/theme/JupyterCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ import React from 'react';
import BrowserOnly from '@docusaurus/core/lib/client/exports/BrowserOnly';
import { ContentLoader } from '@datalayer/primer-addons';

const JupyterCell = (props: any) => {
const { token, serverHttpUrl, serverWsUrl, source } = props;
type JupyterCellProps = {
jupyterServerUrl: string;
jupyterServerToken: string;
source: string;
}

const JupyterCell = (props: JupyterCellProps) => {
const { jupyterServerUrl, jupyterServerToken, source } = props;
return (
<BrowserOnly
fallback={<div>Jupyter Cell fallback content for prerendering.</div>}>
Expand All @@ -20,9 +26,8 @@ const JupyterCell = (props: any) => {
return (
<>
<Jupyter
jupyterToken={token}
jupyterServerHttpUrl={serverHttpUrl}
jupyterServerWsUrl={serverWsUrl}
jupyterServerUrl={jupyterServerUrl}
jupyterServerToken={jupyterServerToken}
disableCssLoading={true}
skeleton={<ContentLoader/>}
>
Expand Down
5 changes: 2 additions & 3 deletions packages/docusaurus-plugin/src/theme/ReactLiveScope/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ const Cell = (props: any) => {
return (
<>
<Jupyter
jupyterServerHttpUrl="https://oss.datalayer.run/api/jupyter-server"
jupyterServerWsUrl="wss://oss.datalayer.run/api/jupyter-server"
jupyterToken="60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
jupyterServerUrl="https://oss.datalayer.run/api/jupyter-server"
jupyterServerToken="60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
disableCssLoading={true}
skeleton={<ContentLoader/>}
>
Expand Down
5 changes: 2 additions & 3 deletions packages/lexical/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
<title>Jupyter UI for Lexical Example</title>
<script id="datalayer-config-data" type="application/json">
{
"jupyterServerHttpUrl": "https://oss.datalayer.run/api/jupyter-server",
"jupyterServerWsUrl": "wss://oss.datalayer.run/api/jupyter-server",
"jupyterToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
"jupyterServerUrl": "https://oss.datalayer.run/api/jupyter-server",
"jupyterServerToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
}
</script>
<link rel="shortcut icon" href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAC7SURBVFiF7ZU9CgIxEIXfTHbPopfYc+pJ9AALtmJnZSOIoJWFoCTzLHazxh/Ebpt5EPIxM8XXTCKTxYyMCYwJFhOYCo4JFiMuu317PZwaqEBUIar4YMmskL73DytGjgu4gAt4PDJdzkkzMBloBhqBgcu69XW+1I+rNSQESNDuaMEhdP/Fj/7oW+ACLuACHk/3F5BAfuMLBjm8/ZnxNvNtHmY4b7Ztut0bqStoVSHfWj9Z6mr8LXABF3CBB3nvkDfEVN6PAAAAAElFTkSuQmCC" type="image/x-icon" />
Expand Down
5 changes: 2 additions & 3 deletions packages/lexical/src/examples/App1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ export const App1 = () => {
<h1>Jupyter UI ❤️ Lexical</h1>
</div>
<Jupyter
jupyterServerHttpUrl="https://oss.datalayer.run/api/jupyter-server"
jupyterServerWsUrl="wss://oss.datalayer.run/api/jupyter-server"
jupyterToken="60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
jupyterServerUrl="https://oss.datalayer.run/api/jupyter-server"
jupyterServerToken="60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
>
<LexicalProvider>
<LexicalEditor/>
Expand Down
5 changes: 2 additions & 3 deletions packages/react/.storybook/preview-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
<title>Jupyter React Storybook<title>
<script id="datalayer-config-data" type="application/json">
{
"jupyterServerHttpUrl": "https://oss.datalayer.run/api/jupyter-server",
"jupyterServerWsUrl": "wss://oss.datalayer.run/api/jupyter-server",
"jupyterToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
"jupyterServerUrl": "https://oss.datalayer.run/api/jupyter-server",
"jupyterServerToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
}
</script>
<script id="jupyter-config-data" type="application/json">
Expand Down
5 changes: 2 additions & 3 deletions packages/react/jupyter_react/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@
</script>
<script id="datalayer-config-data" type="application/json">
{
"jupyterServerHttpUrl": "https://oss.datalayer.run/api/jupyter-server",
"jupyterServerWsUrl": "wss://oss.datalayer.run/api/jupyter-server",
"jupyterToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
"jupyterServerUrl": "https://oss.datalayer.run/api/jupyter-server",
"jupyterServerToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
}
</script>
<script defer src="{{ base_url }}static/jupyter_react/main.jupyter-react.js"></script>
Expand Down
5 changes: 2 additions & 3 deletions packages/react/public/index-local.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
<title>Jupyter React Example</title>
<script id="datalayer-config-data" type="application/json">
{
"jupyterServerHttpUrl": "http://localhost:8686/api/jupyter-server",
"jupyterServerWsUrl": "ws://localhost:8686/api/jupyter-server",
"jupyterToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
"jupyterServerUrl": "http://localhost:8686/api/jupyter-server",
"jupyterServerToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
}
</script>
<script id="jupyter-config-data" type="application/json">
Expand Down
5 changes: 2 additions & 3 deletions packages/react/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
<title>Jupyter React Example</title>
<script id="datalayer-config-data" type="application/json">
{
"jupyterServerHttpUrl": "https://oss.datalayer.run/api/jupyter-server",
"jupyterServerWsUrl": "wss://oss.datalayer.run/api/jupyter-server",
"jupyterToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
"jupyterServerUrl": "https://oss.datalayer.run/api/jupyter-server",
"jupyterServerToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6"
}
</script>
<script id="jupyter-config-data" type="application/json">
Expand Down
Loading

0 comments on commit 53f2cd6

Please sign in to comment.