personal lib
Project description
personal python lib
legacy python lib see xsthunder/python-lib-old: useful python pieces of code
TODO
-
- [x] fix three version replicates, in
rebuild.cmd
,x_lib.__init__
,setup.py
- [x] fix three version replicates, in
-
- [x] create github repo
-
- [x] ex_command能用,默认目录就在jupyter目录下。即外部可以直接使用
xs_lib.common.ex_command
- [x] ex_command能用,默认目录就在jupyter目录下。即外部可以直接使用
-
- [x] save_and_export_notebook使用了
./
就是本目录下要求一定有script;;解决方法是通过import而不是ex_command的方式保存文件
- [x] save_and_export_notebook使用了
-
- [x] save_and_export_notebook使用了支持多级目录
Features
- Full test with traivis to make sure things are on rail.
- list of function see doc
Install and Run
Install via xsthunder-python-lib · PyPI
pip install xsthunder-python-lib
orpip install xsthunder-python-lib --user
Use in Code
use for single ipynb
file
export the ipynb
file
import xs_lib.common as common
nbe = common.NBExporter()
nbe('./pdb.ipynb', to='./')
use for projcet
clone xsthunder/jupyter_dev_template
Development
Environment Setup
deps
- not all deps are necessary. only ipython are set in the
setup.py/deps
. xs_lib.common
supports dynamic import. feel free to import.- to import other modules, please install corresponding deps first or you may come across import error.
- It's recommanded to install all packages listed in create-env.sh
code and release
-
code at xsthunder/xs_lib at dev
-
merge master and travis will deploy to pip
code structures
Ref
Packaging Python Projects — Python Packaging User Guide
notebook2script
from course-v3/nbs/dl2 at master · fastai/course-v3
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xs_lib-0.0.3.tar.gz
(5.3 kB
view details)
File details
Details for the file xs_lib-0.0.3.tar.gz
.
File metadata
- Download URL: xs_lib-0.0.3.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1.post20200323 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3c260b44a3c955230021fe44de8cf28e13be60db1380767e4aca01960df5ac4 |
|
MD5 | 2331779923f93ee74519fa015c8b843d |
|
BLAKE2b-256 | 5791bc95f1aeed7f7b6ed2e5007ec1901cf02c82e0694d75089c72a6ed3ded67 |