Kelvin's miscellaneous tools for python
Project description
tools
Miscellaneous python tools
Install
pip install kttools
# or
pip install git+https://github.com/zktuong/kttools.git
# or
git clone https://github.com/zktuong/kttools.git
cd kttools; pip install -e .
Usage
import tools
jupyterhub issue
On jupyterhub, If you find yourself trying to import from local directory, i.e. git clone
, and finding that you can't import it, you will need to edit your your kernel.json
file like so:
vi /home/jovyan/.local/share/jupyter/kernels/<condaenvironmentname>/kernel.json
add in the $PATH
and $PYTHONPATH
bits:
{
"argv": [
"/home/jovyan/my-conda-envs/<condaenvironmentname>/bin/python",
"-m",
"ipykernel_launcher",
"-f",
"{connection_file}"
],
"env": {
"PATH": "/home/jovyan/scripts/kttools:$PATH",
"PYTHONPATH": "/home/jovyan/scripts/kttools:$PYTHONPATH"
},
"display_name": "Python (<condaenvironmentname>)",
"language": "python"
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kttools-0.1.0.tar.gz
(8.1 kB
view hashes)