-
-
Notifications
You must be signed in to change notification settings - Fork 508
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
Document using Sage on Windows via Visual Studio Code with WSL remote #30484
Comments
comment:1
A basic how to setup VS code for sage (from #25206 comment:63):
|
comment:2
Should also add instructions for cygwin shell under VS code; random link - https://superuser.com/questions/1511487/cygwin-shell-in-vs-code-tries-to-activate-conda-how-to-prevent-this |
comment:4
Replying to @tobiasdiez:
I'd suggest |
comment:5
Sage development has entered the release candidate phase for 9.3. Setting a new milestone for this ticket based on a cursory review of ticket status, priority, and last modification date. |
Dependencies: #30677 |
This comment has been minimized.
This comment has been minimized.
comment:11
Hmm, I can't figure out how to use vscode with a Sage notebook. |
comment:12
At least for a "normal" jupyter notebook, selecting the venv created by sage worked for me. There is also the possibility to connect to a "remote" jupyter instance. https://code.visualstudio.com/docs/datascience/jupyter-notebooks#_connect-to-a-remote-jupyter-server So if you start sage's jupyter server, you should be able to connect to it in this way. |
comment:13
Replying to @tobiasdiez:
The question is, how does vscode's jupyter discover kernels? Where?
|
comment:14
Attachment: Screenshot 2022-04-08 201448.png In the upper right corner you can select the kernel/python version, see attached screenshot. |
comment:16
The link https://code.visualstudio.com/remote-tutorials/wsl/edit-and-debug does not seem to work. |
comment:17
Not sure if it has just moved or this is a different document: https://code.visualstudio.com/docs/remote/wsl |
comment:18
Or maybe this one: https://code.visualstudio.com/docs/remote/wsl-tutorial |
comment:19
Replying to @tobiasdiez:
it's rather unpredictable whether Sage jupyter kernel will be available. |
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:26
On macOS, its Cmd + Shift + P. Perhaps also include the link to the VS Code documentation? |
comment:27
Replying to @sagetrac-git:
Thanks! |
comment:34
I am new to the Visual Studio Code interface to the sagemath installed in WSL. I followed the guide of the branch of this ticket. It mostly worked. But in the first attempt, I could not select SageMath kernel in the jupyter notebook. It was simply missing. I wandered around for some time, and then found Jupyter Extension in the Extensions panel. I installed it, and did the ":Create: New Jupyter Notebook" thing again. Then I could finally select SageMath kernel. So it seems that there is a missing step in the guide: "Install Jupyter Extension" Anyway, this VSCode interface to sage is very nice! Still it was not straightforward for me to setup the working jupyter notebook with sagemath kernel starting from building sage from source in WSL. |
comment:35
Thanks for testing it! I'll add this step |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed author from Louis Ng to Louis Ng, Matthias Koeppe |
Changed reviewer from Tobias Diez to Tobias Diez, Kwankyu Lee |
comment:38
Replying to @mkoeppe:
Thanks. It looks good to me. |
This comment has been minimized.
This comment has been minimized.
comment:42
Thanks! |
Changed branch from public/30484 to |
We already have a basic VS Code configuration; #33103 makes some minor updates.
In this ticket, we add documentation for installing VS Code on Windows and setting up the WSL remote, as the primary way how to use Sage on Windows. This goes to
Next task: cross reference it from the developer's guide and add information there on how to develop Sage on Windows.
References:
Depends on #33131
Depends on #33103
CC: @tobiasdiez @EmmanuelCharpentier @sagetrac-tmonteil @kcrisman @louisng @kwankyu @tscrim @slel
Component: user interface
Author: Louis Ng, Matthias Koeppe
Branch/Commit:
79552c6
Reviewer: Tobias Diez, Kwankyu Lee
Issue created by migration from https://trac.sagemath.org/ticket/30484
The text was updated successfully, but these errors were encountered: