conda init $((basename $SHELL)) to create a conda shell function in ~/.?shrcconda config --set auto_activate_base false to avoid turning your shell into the base environment automatically.conda create -n g4 geant4 to create an virtual environment called g4 with package geant4 installed in it. (NOTE: this doesn’t work for Windows)conda activate g4 to get into the g4 virtual environment
G4 in front of their folder names. This lets geant4-config --check-datasets report errors.cmake -DCMAKE_PREFIX_PATH=/path/to/miniforge/base/folder/ -B build to let [cmake] use miniforge-based libraries.conda deactivate to quit the virtual environmentconda init --reverse $((basename $SHELL)) to remove conda function in ~/.?shrcbrew remove miniforge on MacOS or simply delete folder /path/to/miniforge on Linuxpython is provided in cygwin. One can follow this question in stackoverfow to install python packages.
The following command will serve the contents of the directory where the command is executed at port 8080:
python -m SimpleHTTPServer 8080
By default the server is running at port 8000. No root access is required to run this command.
It is used to establish a permanent connection between the web server and a client through which the server can push data to the client. There is no need to have an update loop on the client side.
https://stackoverflow.com/questions/11815947/cannot-kill-python-script-with-ctrl-c
In python:
help('modules')
In shell:
pydoc3 modules
https://en.wikipedia.org/wiki/Xkcd https://matplotlib.org/api/_as_gen/matplotlib.pyplot.xkcd.html
Activities mentions in this site have been supported by the following grants: