-
Notifications
You must be signed in to change notification settings - Fork 6
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
Changes to the Workshop #317
Comments
We might be lucky that most problems with WSL are gone? |
Let me write down the general principals that should guide us in these discussions:
In our previous discussions, we forgot the "collaborative" part a bit, when it was proposed to switch from WSL to installing software on windows natively. Any solution we should come up with should ideally work
In that context, we wanted to discuss three main things:
At least the first 2 are linked: if we do not want to use WSL anymore on Windows, Make does not work (or we need to go back to git bash / mingw / something else). Snakemake unfortunately does not support windows (they recommend WSL). In my opinion, we thus don't really have an alternative to WSL. Indepent of the make question.
With uncertainties, I am a bit conflicted. For the usecase of the lab courses, it's much more straight forward than anything else I think. The criticisms are valid though... Here, I would propose to remove the more complex things like the My main point would be, that we should prepare a real "Introduction" lecture explaining the principles in detail. |
Regarding the last point, I would add that some students treat the programms and languages we present as a black box, see last emails. We should think about ways how to address this. Although I'm not sure if everyone behind those mails visited a workshop. |
I recently dabbeld with VMs using VirtualBox and the experience was not bad.
|
And to add a silly idea at the end: |
WSL is essentially that, with extra niceties for better inter-op (data exchange!) with the windows host, think sending an email with the protocol. So I think WSL, if the problems are addressen in this recent update, is the preferable solution to a full, custom virtualbox. |
Absolutly, if the WSL gets its stuff together, I'd say it is surly the way to go. Just for the record, the data exchange is no problem, if you have a USB-Stick. You can change the USB connection on the fly from VM to host and back. |
I just installed the new WSL 1.0 on Windows 10 and everything seems to work just fine, including plots popping up on windows without doing anything special and installing TeX Live and building the toolbox material. I'd thus recommend keeping WSL for the windows users. |
Does everything also work on WIN11? Last time that was the bigger issue of the two Windows OS's. Do we have access to a couple of WIN11 machines so that we can test that behavior thoroughly? |
I was going to put a Win11 Partition on my laptop, but it is not officially supported. You can however alter the installer to remove the requirements it is missing. |
I can try to test it on an old pc running the insider previews. If it runs there, every laptop can handle the workload. |
Keep in mind that Windows 11 is incompatible with most older PCs (It requires TPM 2.0): https://support.microsoft.com/en-us/windows/enable-tpm-2-0-on-your-pc-1fd5a332-360d-4f46-a1e7-ae6b0c90645c#bkmk_enable_tpm |
I know, but that PC is running it already. |
That is the requirement I was talking about, |
I recently installed a dual boot with Win11 and ubuntu (Win11 was pre-installed). After disabling the disk encryption in Win11, the steps in our dual boot instructions worked fine. |
This is mainly about the WSL installation, though it's good to know. Could you maybe also test (and maybe do screenshots along the way) if the WSL install works as simple as advertised by MSFT? I.e. one should be able to install ubuntu from the store or do |
This actually works awesome in Windows 11. We can explain how to install the terminal (which I already had), but then we can start from the powershell and everything will work just like in linux. Installtion of Everything in WSLAs already mentioned I did not install the terminal, which is very simple. Install UbuntuFirst I installed WSL and Ubuntu 22.04 LTS. (I had WSL, so I had to update it, but usually this would be enough) Then I had to give a new name and password. In the explorer I am able to find my home directory. When downloading something from the web this is actually not shown so I usually downloaded to the Windows Installation of CodiumThis way I downloaded the codium I installed codium with sudo apt install ./codium-*-amd64.deb When I tried to start it there was this warning. It was possible to disable with the following which we should let them add to their .bashrc. Then Codium looked like the following. Install MambaforgeMambaforge I installed almost analogous to our Linux installation of anaconda. As Max said it would be nice to have an environment for them but I just install some packages in my base env. pip install numpy, matplotlib, uncertainties, sympy, jupyterlab With these I was able to do the test from our installation page. When I saved it to a file and opened it with sudo apt install evince this also opened and looked very nice. Install LaTeXJust installed it analogous to the Linux installation page without any problem. So very nice. W11 seams to be no problem anymore. |
Cool. The only thing I am not sure about is whether it's better to have code in wsl or windows side. |
If it runs well on the WSL side, some of the language support stuff might be easier. If it is installed on the Windows side it obviously can't find the python install, which is required by some addons. |
@jpherdi good to know that it works on your system. Now we would need to test it on Windows 10 and WSL2 as well. And discuss how we would like to handle errors, e.g., the previous ones, no internet, weird Desktop placement, changing default starting dirs of the terminal. |
I don't think this is true. You could just give it the right path to the python installation. The right terminal it finds as well because you can choose between these. The reason why I did not install it in Windows is that the Codiums add-on My result was: When we want to use Codium we should do it via Linux, when we are fine with Code then Windows side would be best. What would you like to discuss about the errors @chrbeckm? I mean these errors are not present anymore (for now). |
The concerns about telemetry are somewhat absurd on windows... so I am fine with using vs code on windws as having windows is the main problem then |
True, I am also fine with that. And this definitely works. |
This really looks great. So maybe we can change the instructions to moving the downloaded files to the WSL home/Downloads and then executing all the commands there instead of using the Windows Desktop? With the VSCode vs Codium I agree to what @maxnoe said. On Windows telemetry should not be that big of a concern so VSCode should be fine. |
That would be as simple: |
You mean like you mentioned in #319 ? I have a neutral opinion on whether this is a good idea, but I'd like to prevent confusion for our attendees. |
Yes, of course. That is an integral part of "reproducibility" |
When we tested it for the last years, we didn't run into all the errors we got per e-mail. And most of them are hard to resolve if you do not use Windows 11 or even 10 yourself. |
WSL is a VM. I really don't think we should advocate for using something like an Ubuntu Virtual Box on Windows. |
I meant a VirtualBox or similar alternative. And not to have it actively on our website, but as a guide for people with, for us unsolvable, WSL problems. Or should we advocate for a dual-boot in that situation? Or do we trust in the WSL after its release? |
I mean, if we test W10 as well and it works, I don't understand, why we should not trust it. |
I did that, works fine. |
Then I don't see any problem. @chrbeckm |
Ok, do you want to change then the installation notes? As you have a modern Windows 11 running laptop, it might be the best. |
I fell like we are running in circles on the WSL issue. If the WSL is working correctly and without the hassle we had last year it is the preferred solution. (Especially because the instalation is even easier after the release in the WindowsStore). The two example installations discussed here, are reasons to be optimistic about the WSL. Though it still is some kind of "It works on my machine"-senario with such a small sample size¹.
The new alternative that has come up is the VM via VirtualBox (or whatever). I layed out some arguments from my perspective On the other hand
is a clear contra-standpoint. But I am missing the reasons for it: ¹One idea that came to mind while tiping this is the following: We could ask for students with Windows PCs from semester 3/4 and up to test the of the new WSL-Installation (under our supervision). This way we could extend the sample size and get a wide range of different devices tested. Idealy it would be an improvmant for the testers as well. |
Sorry fat-fingered the wrong button |
An Issue for collecting ideas and arguments for
changes to the Workshop, including but not limited to:
of the Workshop.
Once wie have formulated some actionable ideas we can split them into multiple 'bite sized' issues.
The text was updated successfully, but these errors were encountered: