This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://k0nze.dev/posts/install-pyenv-venv-vscode/ | |
pyenv update | |
pyenv install <3.11.5> | |
pyenv local 3.11.5 | |
python -m venv .venv | |
.\.venv\Scripts\activate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip uninstall jupyter -y | |
pip uninstall jupyter_core -y | |
pip uninstall jupyter-client -y | |
pip uninstall jupyter-console -y | |
pip uninstall jupyterlab_pygments -y | |
pip uninstall notebook -y | |
pip uninstall qtconsole -y | |
pip uninstall nbconvert -y | |
pip uninstall nbformat -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Track which python to use for diff projs | |
pyenv install -l | |
pyenv install <python-version> | |
#Local (for folder specific) or Global Python | |
pyenv local 3.10.6 | |
pyenv global 3.7.1 | |
# Track which pip packages for diff projs | |
python -m venv .venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create Branch | |
git checkout -b john_branch | |
# Push local branch to github | |
git push --set-upstream origin john_branch | |
# Update Local Branch to Master | |
git checkout master | |
git pull | |
git checkout john_branch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.Download the Senzing API to the /opt/senzing/g2 OR | |
1.Get the docker file(Preferred for further setup of senzing projects) | |
-------------------------------------------------------------------------------------- | |
https://github.com/Senzing/knowledge-base/blob/master/HOWTO/create-senzing-dir.md#using-docker | |
export SENZING_DIR=/opt/senzing | |
export SENZING_SUBCOMMAND=install | |
export SENZING_DOCKER_TAG=1.9.19155 | |
sudo mkdir -p ${SENZING_DIR} | |
docker pull store/senzing/senzing-package:1.9.19155 | |
sudo docker run \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Create Spark Context to connect to Spark Cluster | |
- Have a spark session (use Static method to retrieve it) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For Windows users# Note: <> denotes changes to be made | |
#Create a conda environment | |
conda create --name <environment-name> python=<version:2.7/3.5> | |
#To create a requirements.txt file: | |
conda list #Gives you list of packages used for the environment | |
conda list -e > requirements.txt #Save all the info about packages to your folder |