diff options
Diffstat (limited to 'python-jupyterlab-spreadsheet-editor.spec')
-rw-r--r-- | python-jupyterlab-spreadsheet-editor.spec | 397 |
1 files changed, 397 insertions, 0 deletions
diff --git a/python-jupyterlab-spreadsheet-editor.spec b/python-jupyterlab-spreadsheet-editor.spec new file mode 100644 index 0000000..9e75f04 --- /dev/null +++ b/python-jupyterlab-spreadsheet-editor.spec @@ -0,0 +1,397 @@ +%global _empty_manifest_terminate_build 0 +Name: python-jupyterlab-spreadsheet-editor +Version: 0.6.1 +Release: 1 +Summary: JupyterLab spreadsheet (csv/tsv) editor +License: BSD-3-Clause +URL: https://github.com/krassowski/jupyterlab-spreadsheet-editor.git +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/19/93/8ece4726fb2c85ef5f8512fa87ac67fdd44f7c98f71629f06eb83c440b1c/jupyterlab-spreadsheet-editor-0.6.1.tar.gz +BuildArch: noarch + +Requires: python3-jupyterlab + +%description +# JupyterLab Spreadsheet Editor + + +[](https://mybinder.org/v2/gh/krassowski/jupyterlab-spreadsheet-editor/master?urlpath=lab) +[](https://python.org/pypi/jupyterlab-spreadsheet-editor) + +JupyterLab spreadsheet editor enables interactive editing of comma/tab separated value spreadsheets. +It support formulas, sorting, column/row rearrangements and more! + +> Note: you might be interested to checkout [tabular-data-editor](https://github.com/jupytercalpoly/jupyterlab-tabular-data-editor) as well + +## Showcase + +**Fully featured integration** + +- row/column operations, column width adjustment +- search and replace + + + +**Formula support** +basic formula calculation (rendering) - as implemented by jExcel. + + + +**Column freezing** +for exploration of wide datasets with many covariates + + + +**Launcher items**: +create CSV/TSV files easily from the launcher or the palette. + + + +**Lightweight and reliable dependencies**: +the spreadsheet interface is built with the [jexcel](https://github.com/paulhodel/jexcel), while [Papa Parse](https://github.com/mholt/PapaParse) provides very fast, [RFC 4180](https://tools.ietf.org/html/rfc4180) compatible CSV parsing (both have no third-party dependencies). + +## Requirements + +- JupyterLab >= 3.0 + +## Install + +```bash +pip install jupyterlab-spreadsheet-editor +``` + +## Contributing + +### Development install + +Note: You will need NodeJS to build the extension package. + +The `jlpm` command is JupyterLab's pinned version of +[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use +`yarn` or `npm` in lieu of `jlpm` below. + +```bash +# Clone the repo to your local environment +# Change directory to the jupyterlab-spreadsheet-editor directory +# Install package in development mode +pip install -e . +# Link your development version of the extension with JupyterLab +jupyter labextension develop . --overwrite +# Rebuild extension Typescript source after making changes +jlpm run build +``` + +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 extension. + +```bash +# Watch the source directory in one terminal, automatically rebuilding when needed +jlpm run watch +# Run JupyterLab in another terminal +jupyter lab +``` + +With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt). + +By default, the `jlpm run build` command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command: + +```bash +jupyter lab build --minimize=False +``` + +### Uninstall + +```bash +pip uninstall jupyterlab-spreadsheet-editor +``` + +## Related extensions + +Spreadsheet editors: + +- [jupyterlab-tabular-data-editor](https://github.com/jupytercalpoly/jupyterlab-tabular-data-editor) + +Spreadsheet viewers: + +- [jupyterlab-spreadsheet](https://github.com/quigleyj97/jupyterlab-spreadsheet) implements Excel spreadsheet viewer +- the built-in [csvviewer](https://github.com/jupyterlab/jupyterlab/tree/master/packages/csvviewer) ([extension](https://github.com/jupyterlab/jupyterlab/tree/master/packages/csvviewer-extension)) allows to display CSV/TSV files + +In-notebook spreadsheet widgets: +- [ipysheet](https://github.com/QuantStack/ipysheet) - programmable sheet creation, exploration and modification +- [qgrid](https://github.com/quantopian/qgrid) - interactive DataFrame exploration and modification + + + + +%package -n python3-jupyterlab-spreadsheet-editor +Summary: JupyterLab spreadsheet (csv/tsv) editor +Provides: python-jupyterlab-spreadsheet-editor +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-jupyterlab-spreadsheet-editor +# JupyterLab Spreadsheet Editor + + +[](https://mybinder.org/v2/gh/krassowski/jupyterlab-spreadsheet-editor/master?urlpath=lab) +[](https://python.org/pypi/jupyterlab-spreadsheet-editor) + +JupyterLab spreadsheet editor enables interactive editing of comma/tab separated value spreadsheets. +It support formulas, sorting, column/row rearrangements and more! + +> Note: you might be interested to checkout [tabular-data-editor](https://github.com/jupytercalpoly/jupyterlab-tabular-data-editor) as well + +## Showcase + +**Fully featured integration** + +- row/column operations, column width adjustment +- search and replace + + + +**Formula support** +basic formula calculation (rendering) - as implemented by jExcel. + + + +**Column freezing** +for exploration of wide datasets with many covariates + + + +**Launcher items**: +create CSV/TSV files easily from the launcher or the palette. + + + +**Lightweight and reliable dependencies**: +the spreadsheet interface is built with the [jexcel](https://github.com/paulhodel/jexcel), while [Papa Parse](https://github.com/mholt/PapaParse) provides very fast, [RFC 4180](https://tools.ietf.org/html/rfc4180) compatible CSV parsing (both have no third-party dependencies). + +## Requirements + +- JupyterLab >= 3.0 + +## Install + +```bash +pip install jupyterlab-spreadsheet-editor +``` + +## Contributing + +### Development install + +Note: You will need NodeJS to build the extension package. + +The `jlpm` command is JupyterLab's pinned version of +[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use +`yarn` or `npm` in lieu of `jlpm` below. + +```bash +# Clone the repo to your local environment +# Change directory to the jupyterlab-spreadsheet-editor directory +# Install package in development mode +pip install -e . +# Link your development version of the extension with JupyterLab +jupyter labextension develop . --overwrite +# Rebuild extension Typescript source after making changes +jlpm run build +``` + +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 extension. + +```bash +# Watch the source directory in one terminal, automatically rebuilding when needed +jlpm run watch +# Run JupyterLab in another terminal +jupyter lab +``` + +With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt). + +By default, the `jlpm run build` command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command: + +```bash +jupyter lab build --minimize=False +``` + +### Uninstall + +```bash +pip uninstall jupyterlab-spreadsheet-editor +``` + +## Related extensions + +Spreadsheet editors: + +- [jupyterlab-tabular-data-editor](https://github.com/jupytercalpoly/jupyterlab-tabular-data-editor) + +Spreadsheet viewers: + +- [jupyterlab-spreadsheet](https://github.com/quigleyj97/jupyterlab-spreadsheet) implements Excel spreadsheet viewer +- the built-in [csvviewer](https://github.com/jupyterlab/jupyterlab/tree/master/packages/csvviewer) ([extension](https://github.com/jupyterlab/jupyterlab/tree/master/packages/csvviewer-extension)) allows to display CSV/TSV files + +In-notebook spreadsheet widgets: +- [ipysheet](https://github.com/QuantStack/ipysheet) - programmable sheet creation, exploration and modification +- [qgrid](https://github.com/quantopian/qgrid) - interactive DataFrame exploration and modification + + + + +%package help +Summary: Development documents and examples for jupyterlab-spreadsheet-editor +Provides: python3-jupyterlab-spreadsheet-editor-doc +%description help +# JupyterLab Spreadsheet Editor + + +[](https://mybinder.org/v2/gh/krassowski/jupyterlab-spreadsheet-editor/master?urlpath=lab) +[](https://python.org/pypi/jupyterlab-spreadsheet-editor) + +JupyterLab spreadsheet editor enables interactive editing of comma/tab separated value spreadsheets. +It support formulas, sorting, column/row rearrangements and more! + +> Note: you might be interested to checkout [tabular-data-editor](https://github.com/jupytercalpoly/jupyterlab-tabular-data-editor) as well + +## Showcase + +**Fully featured integration** + +- row/column operations, column width adjustment +- search and replace + + + +**Formula support** +basic formula calculation (rendering) - as implemented by jExcel. + + + +**Column freezing** +for exploration of wide datasets with many covariates + + + +**Launcher items**: +create CSV/TSV files easily from the launcher or the palette. + + + +**Lightweight and reliable dependencies**: +the spreadsheet interface is built with the [jexcel](https://github.com/paulhodel/jexcel), while [Papa Parse](https://github.com/mholt/PapaParse) provides very fast, [RFC 4180](https://tools.ietf.org/html/rfc4180) compatible CSV parsing (both have no third-party dependencies). + +## Requirements + +- JupyterLab >= 3.0 + +## Install + +```bash +pip install jupyterlab-spreadsheet-editor +``` + +## Contributing + +### Development install + +Note: You will need NodeJS to build the extension package. + +The `jlpm` command is JupyterLab's pinned version of +[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use +`yarn` or `npm` in lieu of `jlpm` below. + +```bash +# Clone the repo to your local environment +# Change directory to the jupyterlab-spreadsheet-editor directory +# Install package in development mode +pip install -e . +# Link your development version of the extension with JupyterLab +jupyter labextension develop . --overwrite +# Rebuild extension Typescript source after making changes +jlpm run build +``` + +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 extension. + +```bash +# Watch the source directory in one terminal, automatically rebuilding when needed +jlpm run watch +# Run JupyterLab in another terminal +jupyter lab +``` + +With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt). + +By default, the `jlpm run build` command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command: + +```bash +jupyter lab build --minimize=False +``` + +### Uninstall + +```bash +pip uninstall jupyterlab-spreadsheet-editor +``` + +## Related extensions + +Spreadsheet editors: + +- [jupyterlab-tabular-data-editor](https://github.com/jupytercalpoly/jupyterlab-tabular-data-editor) + +Spreadsheet viewers: + +- [jupyterlab-spreadsheet](https://github.com/quigleyj97/jupyterlab-spreadsheet) implements Excel spreadsheet viewer +- the built-in [csvviewer](https://github.com/jupyterlab/jupyterlab/tree/master/packages/csvviewer) ([extension](https://github.com/jupyterlab/jupyterlab/tree/master/packages/csvviewer-extension)) allows to display CSV/TSV files + +In-notebook spreadsheet widgets: +- [ipysheet](https://github.com/QuantStack/ipysheet) - programmable sheet creation, exploration and modification +- [qgrid](https://github.com/quantopian/qgrid) - interactive DataFrame exploration and modification + + + + +%prep +%autosetup -n jupyterlab-spreadsheet-editor-0.6.1 + +%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-jupyterlab-spreadsheet-editor -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.1-1 +- Package Spec generated |