You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow a process, preferably w/ a Unix script, to create the book authoring venv (virtual environment) and keep it in sync with the book's user (student/AL) venv. The script could take the presentation year YY as argument and:
create a ~/venvs/book-YYJ venv and activate it
pip install rise matplotlib networkx to install latest versions of Jupyter et al
pip freeze > user.txt
pip install pytype nbsphinx sphinx_rtd_theme to also install latest sphinx
pip freeze > author.txt
create aliases to activate user and author environments (or defer this to the installation script, see below)
While updating the book, up/downgrade packages and install new ones as needed, updating author.txt.
Then use diff user.txt author.txt | fgrep '<' to find out which user packages need to be updated to match the author version.
Update the installation scripts to use user.txt instead of requirements.txt. Update the Unix script to install the pytype version in author.txt.
(This is all a bit too manual, would be good to automate more.)
The installation script could take an option (or simply ask the user if they want) to additionally install the authoring environment. This could be handy if I need to reinstall the venv of if someone else in the module team also needs the author venv.
The text was updated successfully, but these errors were encountered:
Follow a process, preferably w/ a Unix script, to create the book authoring venv (virtual environment) and keep it in sync with the book's user (student/AL) venv. The script could take the presentation year YY as argument and:
~/venvs/book-YYJ
venv and activate itpip install rise matplotlib networkx
to install latest versions of Jupyter et alpip freeze > user.txt
pip install pytype nbsphinx sphinx_rtd_theme
to also install latest sphinxpip freeze > author.txt
While updating the book, up/downgrade packages and install new ones as needed, updating
author.txt
.Then use
diff user.txt author.txt | fgrep '<'
to find out which user packages need to be updated to match the author version.Update the installation scripts to use
user.txt
instead ofrequirements.txt
. Update the Unix script to install thepytype
version inauthor.txt
.(This is all a bit too manual, would be good to automate more.)
The installation script could take an option (or simply ask the user if they want) to additionally install the authoring environment. This could be handy if I need to reinstall the venv of if someone else in the module team also needs the author venv.
The text was updated successfully, but these errors were encountered: