%global _empty_manifest_terminate_build 0
Name: python-drawdata
Version: 0.2.0
Release: 1
Summary: draw a dataset from inside jupyter
License: MIT License
URL: https://pypi.org/project/drawdata/
Source0: https://mirrors.aliyun.com/pypi/web/packages/d5/ed/f0d354e256126384fc1dd9e8ac9ac7a42423c466b7920d17f5eb269075b0/drawdata-0.2.0.tar.gz
BuildArch: noarch
Requires: python3-jupyter
Requires: python3-ipython
%description
# drawdata
This small python app allows you to draw a dataset in a jupyter
notebook. This should be very useful when teaching machine learning algorithms.
![](gif.gif)
You can get the same tooling from going to [drawdata.xyz](https://drawdata.xyz)
but with this library you'll also be able to use it from within jupyter. This will save you a precious tab in the browser.
## Installation
Installation occurs via pip.
```
python -m pip install drawdata
```
To read the data, `pandas` is useful:
```
python -m pip install pandas
```
## Usage
When you run this from jupyter, you should load in an iframe.
```python
from drawdata import draw_scatter
draw_scatter()
```
Once you're done drawing you can copy the data to the clipboard. After this you can use pandas to read the clipboard to get your drawn data into a dataframe.
```python
import pandas as pd
pd.read_clipboard(sep=",")
```
%package -n python3-drawdata
Summary: draw a dataset from inside jupyter
Provides: python-drawdata
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-drawdata
# drawdata
This small python app allows you to draw a dataset in a jupyter
notebook. This should be very useful when teaching machine learning algorithms.
![](gif.gif)
You can get the same tooling from going to [drawdata.xyz](https://drawdata.xyz)
but with this library you'll also be able to use it from within jupyter. This will save you a precious tab in the browser.
## Installation
Installation occurs via pip.
```
python -m pip install drawdata
```
To read the data, `pandas` is useful:
```
python -m pip install pandas
```
## Usage
When you run this from jupyter, you should load in an iframe.
```python
from drawdata import draw_scatter
draw_scatter()
```
Once you're done drawing you can copy the data to the clipboard. After this you can use pandas to read the clipboard to get your drawn data into a dataframe.
```python
import pandas as pd
pd.read_clipboard(sep=",")
```
%package help
Summary: Development documents and examples for drawdata
Provides: python3-drawdata-doc
%description help
# drawdata
This small python app allows you to draw a dataset in a jupyter
notebook. This should be very useful when teaching machine learning algorithms.
![](gif.gif)
You can get the same tooling from going to [drawdata.xyz](https://drawdata.xyz)
but with this library you'll also be able to use it from within jupyter. This will save you a precious tab in the browser.
## Installation
Installation occurs via pip.
```
python -m pip install drawdata
```
To read the data, `pandas` is useful:
```
python -m pip install pandas
```
## Usage
When you run this from jupyter, you should load in an iframe.
```python
from drawdata import draw_scatter
draw_scatter()
```
Once you're done drawing you can copy the data to the clipboard. After this you can use pandas to read the clipboard to get your drawn data into a dataframe.
```python
import pandas as pd
pd.read_clipboard(sep=",")
```
%prep
%autosetup -n drawdata-0.2.0
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-drawdata -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Thu Jun 08 2023 Python_Bot - 0.2.0-1
- Package Spec generated