jupyter lab upgrade procedure, git (or config dotfiles) show retrieve old commit
Week 47 - November 23
Monday 11/20
In case of update detected in jupyter lab version.
Here is my procedure.
mamba activate base_jupyter_v4
sudo systemctl stop jupyterlab
mamba update --strict-channel-priority -c conda-forge -c nodefaults jupyterlab
sudo systemctl start jupyterlab
Tuesday 11/21
A reminder of basic git commands:
list all commits of a given file
git rev-list HEAD --oneline filename
display file content of a given commit
git show <SHA1>:./filename
restore a commit
git restore -s <SHA1> -- filename
And as a real example with config
list pip.conf commits
❯ config rev-list HEAD --oneline pip.conf
d9380e3 increase timeout for network hicup
621e022 correct way to setup extra-index-url
1dfd028 dcy-pypi-snapshot-fed
20c75d6 config artifactry
what was in 20c75d6
❯ config show 20c75d6:./pip.conf
[global]
timeout = 1000
index-url = https://pypi.org/simple/
trusted-host = download.pytorch.org
pypi.python.org
files.pythonhosted.org
pypi.org
artifactory.acme.com
extra-index-url=artifactory.acme.com/api/pypi/pypi/simple
restore commit 20c75d6
❯ config restore -s 20c75d6 -- ./pip.conf