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

cocalc-jupyter: add menu options "open in jupyterlab" and "open in vs code". #7306

Open
williamstein opened this issue Feb 27, 2024 · 4 comments

Comments

@williamstein
Copy link
Contributor

  • This should likely be in the File menu, next to "Switch to classical notebook..."
image
  • This should first do "Close and Halt" to avoid issues with cocalc-jupyter and jupyterlab trying to write to the same file at the same time:
image
  • The implementation is probably easy because the URL is canonical, e.g., if the notebook is
https://cocalc.com/projects/fcbbb7d8-ee72-4f39-8db8-f35272254bf0/files/test_plot-2024-01-16-213336.ipynb

then the JupyterLab link is:

https://cocalc.com/fcbbb7d8-ee72-4f39-8db8-f35272254bf0/port/jupyterlab/lab/tree/test_plot-2024-01-16-213336.ipynb

and the Jupyter Classic link is:

https://cocalc.com/fcbbb7d8-ee72-4f39-8db8-f35272254bf0/port/jupyter/notebooks/test_plot-2024-01-16-213336.ipynb

and those servers start automatically when you visit their URL. The main issue is the first time it can take a few seconds, which can be confusing.

REQUESTED: #7261

@williamstein williamstein changed the title cocalc-jupyter: add menu option "open in jupyterlab" and "open in jupyter classic". cocalc-jupyter: add menu options "open in jupyterlab" and "open in jupyter classic". Feb 27, 2024
@mforbes
Copy link

mforbes commented Feb 27, 2024

I was naturally looking for this under the Jupyter menu.

@williamstein
Copy link
Contributor Author

The application name menu and the Help search are just somewhat copies of what macOS does:

image

and

image

All the other menus are mostly inspired by JupyterLab, where it makes sense.

@williamstein
Copy link
Contributor Author

This is a good idea, but I'm changing the title to just JupyterLab (as classic is deprecated).

@williamstein williamstein changed the title cocalc-jupyter: add menu options "open in jupyterlab" and "open in jupyter classic". cocalc-jupyter: add menu options "open in jupyterlab" and "open in vs code". Jul 26, 2024
@williamstein
Copy link
Contributor Author

And adding vscode, as vscode is uniquely good at some things (e.g., LSP support), and easy to fully support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants