Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compute server: http interface #7943

Closed
wants to merge 42 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
2cd7019
compute server: add a trivial "hello world" http interface to compute…
williamstein Oct 15, 2024
3a334d9
compute servrer: serve actual cocalc frontend app code.
williamstein Oct 15, 2024
409ef63
compute express server: add new entry point
williamstein Oct 15, 2024
cde9a06
http compression
williamstein Oct 15, 2024
47b209b
compute http server: steps towards websocket connection
williamstein Oct 15, 2024
cde91ee
compute http server: add a primus websocket server (doesn't do anythi…
williamstein Oct 16, 2024
3291875
working on listing api
williamstein Oct 16, 2024
abd8a18
listing and exec api calls
williamstein Oct 16, 2024
af27be7
compute websocket server: more api calls; list all and include query
williamstein Oct 16, 2024
a24b29d
fix typescript error
williamstein Oct 16, 2024
d116cb9
Merge branch 'master' into compute-http-server
williamstein Oct 16, 2024
2fa268e
Merge branch 'master' into compute-http-server
williamstein Oct 16, 2024
49405b0
jupyter.html no longer needed (deprecated)
williamstein Oct 16, 2024
55c9e8d
Merge branch 'master' into compute-http-server
williamstein Oct 16, 2024
42899b4
fix version consistency issue
williamstein Oct 16, 2024
47d13f7
http compute server ui - work in progress...
williamstein Oct 16, 2024
f6d2743
compute-http-server: adding basic api/v2/ infrastructure
williamstein Oct 16, 2024
57dcb9c
writing something about what synctables are
williamstein Oct 16, 2024
3d91905
working on documenting synctable algorithm
williamstein Oct 17, 2024
43df69f
more documentation of synctables
williamstein Oct 17, 2024
286dfc1
working on refactoring server status code (nothing much done yet)
williamstein Oct 17, 2024
74923a3
Merge branch 'master' into compute-http-server
williamstein Oct 19, 2024
08e05e0
working on compute http server again...
williamstein Oct 20, 2024
45d1084
compute-http-server: working toward synctables
williamstein Oct 20, 2024
f1b4cc3
sync refactoring: move the syncdocs manager to @cocalc/sync/server
williamstein Oct 20, 2024
162e030
add a new package "@cocalc/sync-server"
williamstein Oct 20, 2024
997b42d
jupyter: fallback to raw cell instead of crashing cocalc, in case of
williamstein Oct 20, 2024
ebca010
making sync-server package slightly better (more deps)
williamstein Oct 20, 2024
516952a
fix #7942 -- jupyter cell toolbar: make assistant button work same as…
williamstein Oct 20, 2024
e9227fa
sync-server refactor: move x11 channel management
williamstein Oct 20, 2024
9451f48
refactoring work: project-info --> sync-server/monitor/activity
williamstein Oct 20, 2024
3e5ab75
sync-server: move usage monitoring from project to new package
williamstein Oct 20, 2024
3d5ae7f
finish moving sync code out of @cocalc/project
williamstein Oct 20, 2024
21e4764
start wiring in the new sync-server to compute server
williamstein Oct 20, 2024
30f1c98
implement compute server's raw server
williamstein Oct 20, 2024
a8f2082
clean up -- there were *SEVEN* places in the frontend that all comput…
williamstein Oct 20, 2024
54e0dd1
compute server: starting to work on project info
williamstein Oct 20, 2024
aad35c5
make sync-server table more robust
williamstein Oct 21, 2024
60d39fd
compute http server: implement basic template for the hub's websocket…
williamstein Oct 21, 2024
b23a66e
Merge branch 'master' into compute-http-server
williamstein Oct 21, 2024
a5d0019
Merge branch 'master' into compute-http-server
williamstein Oct 21, 2024
42ce712
Merge branch 'master' into compute-http-server
williamstein Oct 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
jupyter: fallback to raw cell instead of crashing cocalc, in case of
invalid cell type
williamstein committed Oct 20, 2024
commit 997b42dbe945758ba167bd42e00e69838b485a4d
5 changes: 4 additions & 1 deletion src/packages/jupyter/redux/store.ts
Original file line number Diff line number Diff line change
@@ -136,7 +136,10 @@ export class JupyterStore extends Store<JupyterStoreState> {
// TODO: We use unsafe_getIn because maybe the cell type isn't spelled out yet, or our typescript isn't good enough.
const type = this.unsafe_getIn(["cells", id, "cell_type"], "code");
if (type != "markdown" && type != "code" && type != "raw") {
throw Error(`invalid cell type ${type} for cell ${id}`);
console.warn(
`Jupyter: invalid cell type ${type} for cell ${id} -- falling back to raw`,
);
return "raw";
}
return type;
}