Skip to content

Commit da84d7c

Browse files
committed
Remove RTC
1 parent 741c38f commit da84d7c

File tree

10 files changed

+2503
-2142
lines changed

10 files changed

+2503
-2142
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
- name: Setup Python
1818
uses: actions/setup-python@v2
1919
with:
20-
python-version: 3.8
20+
python-version: '3.10'
2121
- name: Install the dependencies
2222
run: |
23-
python -m pip install -U pip setuptools jupyterlab~=3.3 jupyterlite
23+
python -m pip install -U pip setuptools jupyterlab~=4.0 jupyterlite
2424
python -m pip install -e .
2525
jupyter labextension develop . --overwrite
2626
- name: Build the JupyterLite site

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,10 @@ Powered by Kitware's `vtk.js` and `itk-wasm` library, **jupyterview** is a pure
2020

2121
![pvd](https://user-images.githubusercontent.com/4451292/157324587-0b89159d-f4db-4227-b58b-437c75f69855.gif)
2222

23-
- Visualize mesh supported by `meshio` library. Full list of supported formats is available at https://github.com/nschloe/meshio
23+
- Visualize mesh supported by `meshio` library. Full list of supported formats is available at https://github.com/nschloe/meshio. To open `med` files, `h5py` need to be installed.
2424

2525
https://user-images.githubusercontent.com/4451292/173418573-1839d689-763f-42ba-add3-4eaac4c87d7e.mp4
2626

27-
- Real-time collaborative visualization.
28-
29-
![colab](https://user-images.githubusercontent.com/4451292/157325576-c79c9ee8-6428-4e96-afa6-827467e70438.gif)
30-
3127
- Multiple display modes: `Surface`, `Surface with Edge`, `Wireframe` and `Points`
3228
- Color scale and isocolor effet.
3329
- Warp by scalar effet.

binder/environment.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ channels:
1111

1212
dependencies:
1313
# runtime dependencies
14-
- python >=3.8,<3.9.0a0
15-
- jupyterlab >=3,<4.0.0a0
14+
- python >=3.10,<3.11
15+
- jupyterlab >=4,<5
1616
# labextension build dependencies
17-
- nodejs >=14,<15
17+
- nodejs >=18,<19
1818
- pip
1919
- wheel
2020
# additional packages for demos

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"dependencies": {
4949
"@emotion/react": "^11.7.1",
5050
"@emotion/styled": "^11.6.0",
51-
"@jupyter/docprovider": "^1.0.0-alpha.8",
5251
"@jupyter/ydoc": "^1.0.2",
5352
"@jupyterlab/application": "^4.0.0",
5453
"@jupyterlab/coreutils": "^6.0.0",

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ classifiers = [
2424

2525
dependencies = [
2626
"meshio",
27-
"jupyter_server>=1.21,<3",
28-
"jupyter_collaboration>=1.0.0a8",
27+
"jupyter_server>=1.21,<3"
2928
]
3029

3130
dynamic = ["version", "description", "authors", "urls", "keywords"]

src/index.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ import {
55
JupyterFrontEndPlugin
66
} from '@jupyterlab/application';
77
import { IThemeManager } from '@jupyterlab/apputils';
8-
import {
9-
ICollaborativeDrive
10-
// SharedDocumentFactory
11-
} from '@jupyter/docprovider';
128
import { KernelExecutor } from './kernel';
139
import {
1410
JupyterViewModelFactory,
@@ -30,8 +26,7 @@ const activate = (
3026
app: JupyterFrontEnd,
3127
restorer: ILayoutRestorer,
3228
themeManager: IThemeManager,
33-
shell: ILabShell,
34-
drive: ICollaborativeDrive
29+
shell: ILabShell
3530
): IVtkTracker => {
3631
const tracker = new VtkTracker({ namespace: NAME_SPACE });
3732

@@ -124,7 +119,7 @@ const activate = (
124119
const plugin: JupyterFrontEndPlugin<IVtkTracker> = {
125120
id: 'jupyterview:plugin',
126121
autoStart: true,
127-
requires: [ILayoutRestorer, IThemeManager, ILabShell, ICollaborativeDrive],
122+
requires: [ILayoutRestorer, IThemeManager, ILabShell],
128123
provides: IJupyterViewDocTracker,
129124
activate
130125
};

src/mainview/mainview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ export class MainView extends React.Component<IProps, IStates> {
597597
const interactor = this._renderWindow.getInteractor();
598598
interactor.requestAnimation(this._renderWindow);
599599
let count = 0;
600-
let intervalId: NodeJS.Timer;
600+
let intervalId: any = undefined;
601601
const rotate = () => {
602602
if (count < 90) {
603603
count += ROTATION_STEP;

src/mainview/model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class JupyterViewModel implements DocumentRegistry.IModel {
3535
this._sharedModel.awareness.on('change', this._onCameraChanged);
3636
}
3737

38-
readonly collaborative = true;
38+
readonly collaborative = false;
3939

4040
get sharedModel(): JupyterViewDoc {
4141
return this._sharedModel;

src/tools.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export function moveCamera(
167167
const now = performance.now().toString();
168168
const animationRequester = `moveCamera.${now}`;
169169
interactor.requestAnimation(animationRequester);
170-
let intervalId: NodeJS.Timer;
170+
let intervalId: any = undefined;
171171
const consumeAnimationStack = () => {
172172
if (animationStack.length) {
173173
const {

0 commit comments

Comments
 (0)