podman build -t arch-ekeko:latest /path/to/arch-ekeko
Note: you can replace podman with docker
Once this image is create you can then create a distrobox image.
distrobox create --image arch-ekeko:latest --name arch-ekeko
which you can then run with
distrobox enter arch-ekeko
Welcome to the ekeko
project! This guide will walk you through setting up a Jupyter Notebook environment to ensure that you can run and share notebooks in a consistent environment.
- Python: Ensure you have Python installed (ideally Python 3.8 or later).
- Poetry: This project uses Poetry for dependency management.
-
Clone the project repository:
git clone https://github.com/yourusername/ekeko.git cd ekeko
-
Install the project dependencies with Poetry:
poetry install
This command will create a virtual environment and install all dependencies specified in the
pyproject.toml
file.
To ensure that Jupyter Notebooks use the correct environment and dependencies, we'll set up a dedicated IPython kernel for the ekeko
project.
If you haven’t yet added Jupyter as a dependency, run this command to add it:
poetry add --dev jupyter
Use the following command to create an IPython kernel named ekeko
:
poetry run python -m ipykernel install --user --name=ekeko
This command registers the current Poetry environment as a Jupyter kernel named ekeko
. You should see confirmation that the kernel has been installed.
-
Start Jupyter Notebook with Poetry:
poetry run jupyter notebook
-
When Jupyter Notebook opens, go to Kernel > Change Kernel and select
ekeko
from the list of available kernels. This ensures that the notebook runs in theekeko
environment with all necessary dependencies.
- Kernel Not Listed: If you don’t see
ekeko
in the kernel list, ensure that you followed the steps above exactly, especially theipykernel
installation command. - Dependency Issues: If you encounter issues with dependencies, ensure you've run
poetry install
in the project directory.
Here’s a quick summary of the commands you’ll need:
# Install dependencies
poetry install
# Add Jupyter as a development dependency (if not already added)
poetry add --dev jupyter
# Install the IPython kernel
poetry run python -m ipykernel install --user --name=ekeko
# Run Jupyter Notebook
poetry run jupyter notebook