/jldev_poetry_2023

jldev_poetry 2023 version

Primary LanguageDockerfileMIT LicenseMIT

jldev_poetry

Enhance your JOps (= Julia + Python/Poetry + VSCode + JupyterLab + Docker + Pluto)

How to use

Prerequisite

  • Please install Git, GNU Make, Docker and Docker Compose.

Setup environment

$ git clone https://github.com/terasakisatoshi/jldev_poetry.git
$ cd jldev_poetry
$ make

After that go to the next chapter.

How to run

Initialize JupyterLab

$ docker-compose up lab

Dive into the Docker container

$ docker-compose run --rm shell bash
jovyan@e74b3f5d0d5e:/workspace/jldev_poetry.jl$ # do something awesome e.g. julia or python

Test

$ make test

Docs

$ docker-compose up web

Then, go to localhost:8000

Format file

docker-compose run --rm shell poe format

Update packages

  • Julia
$ docker-compose run --rm shell julia -e 'using Pkg; Pkg.add("Example")'
$ make # rebuild Docker image
  • Python
$ docker-compose run --rm shell poetry add "numpy"
$ make # rebuild Docker image

VSCode

  • Install VSCode in advance
$ cd /path/to/this/repository
$ code . # Open VSCode

Then dive into Remote Container.

Clean up

$ make clean