File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 },
2626 "ghcr.io/dhoeric/features/google-cloud-cli@sha256:fa5d894718825c5ad8009ac8f2c9f0cea3d1661eb108a9d465cba9f3fc48965f" : {},
2727 "./.devcontainer/features/workbench-tools" : {
28+ "libPythonVersion" : " 3.12" , // Must match python version in nemo image
2829 "cloud" : " ${templateOption:cloud}" ,
2930 "username" : " jupyter" ,
3031 "userHomeDir" : " /home/jupyter"
Original file line number Diff line number Diff line change @@ -17,9 +17,15 @@ RUN useradd --uid ${NB_UID} --gid ${NB_GID} --create-home --home-dir ${WORKDIR}
1717 # Fix ownership for common dirs
1818 && mkdir -p /workspace \
1919 && chown -R ${NB_UID}:${NB_GID} ${WORKDIR} /workspace /tmp \
20- && chown -R ${NB_UID}:${NB_GID} /opt/conda || true \
21- # Add alias for weightsbiases
22- && printf 'alias weightsbiases="/usr/local/bin/wb"\n alias wb="/usr/bin/wb"\n ' >> ${WORKDIR}/.bashrc
20+ && chown -R ${NB_UID}:${NB_GID} /opt/conda || true
21+
22+ # Add shell functions to override wb commands (functions work in non-interactive shells, unlike aliases)
23+ RUN <<EOF cat >> ${WORKDIR}/.bashrc
24+ weightsbiases() { /usr/local/bin/wb "\$ @" ; }
25+ wb() { /usr/bin/wb "\$ @" ; }
26+ wandb() { /opt/venv/bin/wb "\$ @" ; }
27+ export -f weightsbiases wb wandb
28+ EOF
2329
2430# Environment and working directory
2531ENV HOME=${WORKDIR}
Original file line number Diff line number Diff line change 2626 },
2727 "ghcr.io/dhoeric/features/google-cloud-cli@sha256:fa5d894718825c5ad8009ac8f2c9f0cea3d1661eb108a9d465cba9f3fc48965f" : {},
2828 "./.devcontainer/features/workbench-tools" : {
29+ "libPythonVersion" : " 3.12" , // Must match python version in nemo image
2930 "cloud" : " ${templateOption:cloud}" ,
3031 "username" : " jupyter" ,
3132 "userHomeDir" : " /home/jupyter"
You can’t perform that action at this time.
0 commit comments