个人自由

xsthunder-python-lib的Python项目详细描述


personal python lib Build Status

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] create github repo
    • [x] ex_command能用,默认目录就在jupyter目录下。即外部可以直接使用x_lib.common.ex_command
    • [x] save_and_export_notebook使用了./就是本目录下要求一定有script;;解决方法是通过import而不是ex_command的方式保存文件
    • [x] save_and_export_notebook使用了支持多级目录

Features

  1. Full test with traivis to make sure things are on rail.
  2. list of function see doc

Install and Run

Install via xsthunder-python-lib · PyPI

  1. pip install xsthunder-python-lib or pip install xsthunder-python-lib --user

Use in Code

use for single ipynb file

export the ipynb file

nbe=common.NBExporter()nbe('./pdb.ipynb',to='./')

use for projcet

clone xsthunder/jupyter_dev_template

Development

Environment Setup

for conda

deps

  1. not all deps are necessary. only ipython are set in the setup.py/deps.
  2. x_lib.common supports dynamic import. feel free to import.
  3. to import other modules, please install corresponding deps first or you may come across error.
  4. It's recommanded to install all packages listed in create-env.sh

Ref

deployment - How can I use setuptools to generate a console_scripts entry point which calls ^{}? - Stack Overflow

Packaging Python Projects — Python Packaging User Guide

notebook2script from course-v3/nbs/dl2 at master · fastai/course-v3

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java iText字体显示不正确   java使用ApacheFTPClient通过代理连接到FTP服务器   java是在类常量池、字符串池还是年轻一代中为字符串文本分配的空间?GC何时可以访问字符串文字?   java如何读取excel文件并将值设置为null   验证。包含在Java中不用于验证电子邮件格式的(“@”)   两个服务器实例上的java Hibernate主键冲突   java我无法在For循环(JavaFX)中设置按钮文本   单独SocketChannels的java并发读取()对于大型字节缓冲区速度较慢   OpenPDF java分组元素以保持在同一页面上   java将组件放置在任意(x,y)坐标处   java Jackson不会序列化hibernate惰性抓取字段   从Eclipse将带有库的java项目导出到可运行jar   java为什么会出现{错误?   java如何将线性布局(作为子布局)动态添加到约束布局(父布局)?