source activate condaEnv
conda env export > environment.yml
OR !conda env export --name condaEnv
conda env create --file environment.yml --name environment1
Create new env and install libraries for jupyter-lab. Make sure to restart jupyter-lab after these changes:
conda create -n kaggle13 python=3.7.6
(for Kaggle) OR 3.8.5
for latest
source activate kaggle13
conda install ipykernel
ipython kernel install --user --name=kaggle13
(conda env list | grep '^\w' | cut -d' ' -f1)
env1/pip freeze > requirements.txt
env1/pip install -r requirements.txt
To be able to see kernel in jupyter-notebook. Make sure to restart jupyter-notebook after these changes:
source activate env1
pip install --user ipykernel
python -m ipykernel install --user --name=env1
https://jupyterlab.readthedocs.io/en/stable/user/debugger.html
{"shortcuts": [
{
"command": "runmenu:restart-and-run-all",
"keys": ["Ctrl Shift Enter"],
"selector": "[data-jp-code-runner]"
}
]
}
where python
or which python
defaults
conda-forge
https://pypi.python.org/
https://repo.continuum.io/
https://pypi.python.org/simple
https://pypi.python.org/pypi
import platform
print('architecture:', platform.architecture())
print('python_version:', platform.python_version())
import wheel.pep425tags
import pprint
print('-wheel.pep425tags.get_supported:')
pprint.pprint(wheel.pep425tags.get_supported())
pip install .
pip install test.whl
pip install -e git+https://github.com/hiive/hiivemdptoolbox#egg=hiive.mdptoolbox
tensorboard --logdir logs
select pg_terminate_backend(pid) from pg_stat_activity where datname='db';