在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:janfreyberg/ipyannotations开源软件地址:https://github.com/janfreyberg/ipyannotations开源编程语言:Python 89.9%开源软件介绍:ipyannotationsCreate rich adata annotations in jupyter notebooks. ipyannotations provides interactive UI elements, based on ipywidgets, to allow developers and scientists to label data right in the notebook. ipyannotations supports many common data labelling tasks, such as image and text classification and annotation. It also supports custom data presentation by leveraging the Jupyter ecosystem. InstallationYou can install using pip install ipyannotations If you are using Jupyter Notebook 5.2 or earlier, you may also need to enable the nbextension: jupyter nbextension enable --py [--sys-prefix|--user|--system] ipyannotations Development InstallationCreate a dev environment: conda create -n ipyannotations-dev -c conda-forge nodejs yarn python jupyterlab
conda activate ipyannotations-dev Install the python. This will also build the TS package. pip install -e ".[test, examples]" When developing your extensions, you need to manually enable your extensions with the notebook / lab frontend. For lab, this is done by the command:
For classic notebook, you need to run:
Note that the How to see your changesTypescript:If you use JupyterLab to develop then you can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the widget. # Watch the source directory in one terminal, automatically rebuilding when needed
yarn run watch
# Run JupyterLab in another terminal
jupyter lab After a change wait for the build to finish and then refresh your browser and the changes should take effect. Python:If you make a change to the python code then you will need to restart the notebook kernel to have it take effect. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论