Skip to content

obrien-james/kttools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docs PyPI

kttools

Kelvin’s miscellaneous python tools

Install

pip install kttools

# or
pip install git+https://github.com/tuonglab/kttools.git

# or
git clone https://github.com/tuonglab/kttools.git
cd kttools; pip install -e .

Usage

import tools

Please checkout the documentation api for details about the functions you can use to make your life easier.

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"
}

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%