Skip to content

Conversation

tschm
Copy link
Contributor

@tschm tschm commented Jan 9, 2025

Use a modern DevContainer with vscode and jupyter lab

@tschm
Copy link
Contributor Author

tschm commented Mar 26, 2025

@jonathan-taylor
After merge you can do
“make jupyter” which will start a jupyter lab server based on the virtual environment defined in requirements.txt.

Students that do not have machines powerful enough can click on “Open in GitHub Codespaces” and you work in a container on a rented machine. There you either work in the vscode interface or in the jupyter lab environment. In the background we use uv to download the dependencies in a fast way...

no browser option for devContainer
@tschm
Copy link
Contributor Author

tschm commented Mar 26, 2025

Using the DevContainer users can either work using Jupyter Lab (which is started in the background) or the vs code interface.

To install the current version of the requirements run

```
pip install -r https://raw.githubusercontent.com/intro-stat-learning/ISLP_labs/v2.2/requirements.txt;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One worry about make install here is for Windows users who may not use CLI. The pip install can be run within a notebook as a magic where I don't know about the calls to make. Won't users have to have downloaded Apple's CLI tools for this?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't mean we can't have the Makefile of course, just perhaps the instructions for students shouldn't presume make. That's all.

@jonathan-taylor jonathan-taylor merged commit 9e54517 into intro-stat-learning:main Apr 9, 2025
jonathan-taylor added a commit that referenced this pull request Apr 9, 2025
* Create .python-version

* Create .gitignore

* Create Makefile

* remove Dockerfile

* remove docker workflow

* startup.sh

* devcontainer

* README with link

* Update Makefile

* obsolete python-version

* Update README.md

* Update README.md

* Update README.md

* Update devcontainer.json

no browser option for devContainer

* introducing a first test

* introducing a first test

* introducing a manual release job

* introducing a manual release job

* Update README.md

---------

Co-authored-by: Jonathan Taylor <[email protected]>
@jonathan-taylor jonathan-taylor mentioned this pull request Apr 9, 2025
@jonathan-taylor
Copy link
Collaborator

@all-contributors please add @tschm for code

Copy link
Contributor

@jonathan-taylor

I've put up a pull request to add @tschm! 🎉

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

Successfully merging this pull request may close these issues.

2 participants