Skip to content

Commit d497b01

Browse files
committed
fix: html
1 parent 9af4264 commit d497b01

File tree

7 files changed

+199
-12
lines changed

7 files changed

+199
-12
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,5 +172,6 @@ packages/react/.vscode/launch.json
172172
!.storybook
173173
!.vscode
174174
!.licenserc.yaml
175-
!packages/react/jupyter_react/static/README.md
175+
!dev/notebooks/.datalayer
176176
!docs/static/img
177+
!packages/react/jupyter_react/static/README.md

dev/config/jupyter_server_config.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,16 @@
7676
}
7777

7878
#################
79-
# Content
79+
# Contents
8080
#################
8181

82-
# c.FileContentsManager.delete_to_trash = False
8382
content_dir = os.path.dirname(os.path.realpath(__file__)) + '/../notebooks'
8483
c.ServerApp.root_dir = content_dir
8584
c.ServerApp.preferred_dir = content_dir
8685

86+
# c.FileContentsManager.delete_to_trash = False
87+
c.ContentsManager.allow_hidden = True
88+
8789
#################
8890
# URLs
8991
#################

dev/notebooks/.datalayer/ping.ipynb

Lines changed: 185 additions & 0 deletions
Large diffs are not rendered by default.

packages/react/public/index-local.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"jupyterServerToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6",
1616
"runUrl": "https://oss.datalayer.run",
1717
"token": "",
18-
"cpuEnvironment": "python-simple-env",
18+
"cpuEnvironment": "python-cpu-env",
1919
"gpuEnvironment": "pytorch-cuda-env",
2020
"credits": 1
2121
}

packages/react/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"jupyterServerToken": "60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6",
1616
"runUrl": "https://prod1.datalayer.run",
1717
"token": "",
18-
"cpuEnvironment": "python-simple-env",
18+
"cpuEnvironment": "python-cpu-env",
1919
"gpuEnvironment": "pytorch-cuda-env",
2020
"credits": 1
2121
}

packages/react/src/jupyter/kernel/Kernel.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ export class Kernel {
135135
});
136136
this._kernelConnection.info.then(info => {
137137
this._info = info;
138-
console.log('Kernel information.', info);
139-
console.log('Kernel session.', this._session);
140-
console.log('Kernel details.', this.toJSON());
138+
console.log('Kernel Information.', info);
139+
console.log('Kernel Session.', this._session);
140+
console.log('Kernel Details.', this.toJSON());
141141
});
142142
}
143143
}

packages/react/src/jupyter/services/ServiceManagerLess.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,10 +419,9 @@ export class ServiceManagerLess implements ServiceManager.IManager {
419419
nbconvert: NbConvert.IManager;
420420
constructor(serverSettings?: ServerConnection.ISettings) {
421421
this.serverSettings = serverSettings ?? ServerConnection.makeSettings({
422-
baseUrl: 'https://oss.datalayer.run/api/jupyter-server',
423-
wsUrl: 'wss://oss.datalayer.run/api/jupyter-server',
424-
token: '60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6',
425-
});
422+
baseUrl: 'http://',
423+
wsUrl: 'ws://',
424+
token: '', });
426425
this.contents = new ContentsManagerLess(this.serverSettings);
427426
this.kernels = new KernelsManagerLess(this.serverSettings);
428427
this.kernelspecs = new KernelspecManagerLess(this.serverSettings);

0 commit comments

Comments
 (0)