Skip to content
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

Fix bash history and auto-complete in interactive modes #20

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ ENTRYPOINT ["/usr/local/bin/_entrypoint.sh"]
# Add the base environment as the default Jupyter Python kernel
RUN if [[ -n "$NOTEBOOK_MODE" ]] ; then python -m ipykernel install --user ; fi
# For debugging, use this one
# ENTRYPOINT ["/usr/local/bin/_entrypoint.sh", "/bin/sh"]
# ENTRYPOINT ["/usr/local/bin/_entrypoint.sh", "/bin/bash"]
# In a final application, you may want to hard-wire the entrypoint to the script:
# ENTRYPOINT ["/usr/local/bin/_entrypoint.sh", "python", "./main.py"]
10 changes: 5 additions & 5 deletions env.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ channels:
dependencies:
- _openmp_mutex=4.5=2_gnu
- anyio=4.3.0=pyhd8ed1ab_0
- black=24.4.0=py312h996f985_0
- black=24.4.2=py312h996f985_0
- brotli-python=1.1.0=py312h2aa54b4_1
- bzip2=1.0.8=h31becfc_5
- ca-certificates=2024.2.2=hcefe29a_0
Expand All @@ -18,14 +18,14 @@ dependencies:
- httpcore=1.0.5=pyhd8ed1ab_0
- httpx=0.27.0=pyhd8ed1ab_0
- hyperframe=6.0.1=pyhd8ed1ab_0
- idna=3.6=pyhd8ed1ab_0
- ld_impl_linux-aarch64=2.40=h2d8c526_0
- idna=3.7=pyhd8ed1ab_0
- ld_impl_linux-aarch64=2.40=hba4e955_0
- libexpat=2.6.2=h2f0025b_0
- libffi=3.4.2=h3557bc0_5
- libgcc-ng=13.2.0=hf8544c7_5
- libgomp=13.2.0=hf8544c7_5
- libnsl=2.0.1=h31becfc_0
- libsqlite=3.45.2=h194ca79_0
- libsqlite=3.45.3=h194ca79_0
- libstdcxx-ng=13.2.0=h9a76618_5
- libuuid=2.38.1=hb4cce97_0
- libxcrypt=4.4.36=h31becfc_1
Expand All @@ -38,7 +38,7 @@ dependencies:
- packaging=24.0=pyhd8ed1ab_0
- pathspec=0.12.1=pyhd8ed1ab_0
- pip=24.0=pyhd8ed1ab_0
- platformdirs=4.2.0=pyhd8ed1ab_0
- platformdirs=4.2.1=pyhd8ed1ab_0
- pygments=2.17.2=pyhd8ed1ab_0
- pysocks=1.7.1=pyha2e5f31_6
- python=3.12.3=h43d1f9e_0_cpython
Expand Down
30 changes: 15 additions & 15 deletions notebook.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
- attrs=23.2.0=pyh71513ae_0
- babel=2.14.0=pyhd8ed1ab_0
- beautifulsoup4=4.12.3=pyha770c72_0
- black=24.4.0=py312h996f985_0
- black=24.4.2=py312h996f985_0
- bleach=6.1.0=pyhd8ed1ab_0
- brotli-python=1.1.0=py312h2aa54b4_1
- bzip2=1.0.8=h31becfc_5
Expand Down Expand Up @@ -40,7 +40,7 @@ dependencies:
- httpx=0.27.0=pyhd8ed1ab_0
- hyperframe=6.0.1=pyhd8ed1ab_0
- icu=73.2=h787c7f5_0
- idna=3.6=pyhd8ed1ab_0
- idna=3.7=pyhd8ed1ab_0
- importlib-metadata=7.1.0=pyha770c72_0
- importlib_metadata=7.1.0=hd8ed1ab_0
- importlib_resources=6.4.0=pyhd8ed1ab_0
Expand All @@ -64,12 +64,12 @@ dependencies:
- jupyter_events=0.10.0=pyhd8ed1ab_0
- jupyter_server=2.14.0=pyhd8ed1ab_0
- jupyter_server_terminals=0.5.3=pyhd8ed1ab_0
- jupyterlab=4.1.6=pyhd8ed1ab_0
- jupyterlab=4.1.8=pyhd8ed1ab_0
- jupyterlab_pygments=0.3.0=pyhd8ed1ab_1
- jupyterlab_server=2.26.0=pyhd8ed1ab_0
- jupyterlab_server=2.27.1=pyhd8ed1ab_0
- jupyterlab_widgets=3.0.10=pyhd8ed1ab_0
- jupytext=1.16.1=pyhd8ed1ab_0
- ld_impl_linux-aarch64=2.40=h2d8c526_0
- ld_impl_linux-aarch64=2.40=hba4e955_0
- libblas=3.9.0=22_linuxaarch64_openblas
- libcblas=3.9.0=22_linuxaarch64_openblas
- libexpat=2.6.2=h2f0025b_0
Expand All @@ -83,14 +83,14 @@ dependencies:
- libnsl=2.0.1=h31becfc_0
- libopenblas=0.3.27=pthreads_h5a5ec62_0
- libsodium=1.0.18=hb9de7d4_1
- libsqlite=3.45.2=h194ca79_0
- libsqlite=3.45.3=h194ca79_0
- libstdcxx-ng=13.2.0=h9a76618_5
- libuuid=2.38.1=hb4cce97_0
- libxcrypt=4.4.36=h31becfc_1
- libxml2=2.12.6=h3091e33_1
- libxml2=2.12.6=h3091e33_2
- libxslt=1.1.39=h1cc9640_0
- libzlib=1.2.13=h31becfc_5
- lxml=5.1.0=py312h04464de_0
- lxml=5.2.1=py312hf2f09fd_0
- markdown-it-py=3.0.0=pyhd8ed1ab_0
- markupsafe=2.1.5=py312h9ef2f89_0
- matplotlib-inline=0.1.7=pyhd8ed1ab_0
Expand All @@ -105,7 +105,7 @@ dependencies:
- nbformat=5.10.4=pyhd8ed1ab_0
- ncurses=6.4.20240210=h0425590_0
- nest-asyncio=1.6.0=pyhd8ed1ab_0
- notebook=7.1.2=pyhd8ed1ab_0
- notebook=7.1.3=pyhd8ed1ab_0
- notebook-shim=0.2.4=pyhd8ed1ab_0
- numpy=1.26.4=py312h470d778_0
- openpyxl=3.1.2=py312hdd3e373_1
Expand All @@ -122,7 +122,7 @@ dependencies:
- pickleshare=0.7.5=py_1003
- pip=24.0=pyhd8ed1ab_0
- pkgutil-resolve-name=1.3.10=pyhd8ed1ab_1
- platformdirs=4.2.0=pyhd8ed1ab_0
- platformdirs=4.2.1=pyhd8ed1ab_0
- prettytable=3.10.0=pyhd8ed1ab_0
- prometheus_client=0.20.0=pyhd8ed1ab_0
- prompt-toolkit=3.0.42=pyha770c72_0
Expand All @@ -143,12 +143,12 @@ dependencies:
- python_abi=3.12=4_cp312
- pytz=2024.1=pyhd8ed1ab_0
- pyyaml=6.0.1=py312hdd3e373_1
- pyzmq=26.0.0=py312h1c32067_0
- pyzmq=26.0.2=py312h7059f03_0
- qtconsole-base=5.5.1=pyha770c72_0
- qtpy=2.4.1=pyhd8ed1ab_0
- rdflib=7.0.0=pyhd8ed1ab_0
- readline=8.2=h8fc344f_1
- referencing=0.34.0=pyhd8ed1ab_0
- referencing=0.35.0=pyhd8ed1ab_0
- requests=2.31.0=pyhd8ed1ab_0
- rfc3339-validator=0.1.4=pyhd8ed1ab_0
- rfc3986-validator=0.1.1=pyh9f0ad1d_0
Expand All @@ -163,12 +163,12 @@ dependencies:
- stack_data=0.6.2=pyhd8ed1ab_0
- tabulate=0.9.0=pyhd8ed1ab_1
- terminado=0.18.1=pyh0d859eb_0
- tinycss2=1.2.1=pyhd8ed1ab_0
- tinycss2=1.3.0=pyhd8ed1ab_0
- tk=8.6.13=h194ca79_0
- toml=0.10.2=pyhd8ed1ab_0
- tomli=2.0.1=pyhd8ed1ab_0
- tornado=6.4=py312h9ef2f89_0
- traitlets=5.14.2=pyhd8ed1ab_0
- traitlets=5.14.3=pyhd8ed1ab_0
- typer=0.12.3=pyhd8ed1ab_0
- typer-slim=0.12.3=pyhd8ed1ab_0
- typer-slim-standard=0.12.3=hd8ed1ab_0
Expand All @@ -182,7 +182,7 @@ dependencies:
- wcwidth=0.2.13=pyhd8ed1ab_0
- webcolors=1.13=pyhd8ed1ab_0
- webencodings=0.5.1=pyhd8ed1ab_2
- websocket-client=1.7.0=pyhd8ed1ab_0
- websocket-client=1.8.0=pyhd8ed1ab_0
- wheel=0.43.0=pyhd8ed1ab_1
- widgetsnbextension=4.0.10=pyhd8ed1ab_0
- xz=5.2.6=h9cdd2b7_0
Expand Down
2 changes: 1 addition & 1 deletion run_notebook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ while getopts ":i" opt; do
i)
echo "Interactive mode enabled, starting shell and keeping terminal open (use 'exit' to quit)"
echo Use e.g. $COMMAND
COMMAND="/bin/sh"
COMMAND="/bin/bash"
;;
esac
done
Expand Down
2 changes: 1 addition & 1 deletion run_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ while getopts ":dDin" opt; do
i)
echo "INFO: Interactive mode enabled, keeping terminal open (use 'exit' to quit)"
PARAMETERS="-it"
COMMAND="/bin/sh"
COMMAND="/bin/bash"
;;
n)
echo "INFO: Outbound network ENABLED (Warning: The script can access the entire host network)"
Expand Down