%global _empty_manifest_terminate_build 0 Name: python-jupyterlab-topbar Version: 0.6.1 Release: 1 Summary: JupyterLab extension to expose the top bar space License: BSD-3-Clause URL: https://github.com/jtpio/jupyterlab-topbar.git Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c8/6a/dfb91e558d5e7628dbf73936d4a65a93d40612d3635b998129225f4e4f7f/jupyterlab-topbar-0.6.1.tar.gz BuildArch: noarch Requires: python3-jupyterlab %description # JupyterLab Top Bar ![Github Actions Status](https://github.com/jtpio/jupyterlab-topbar/workflows/Build/badge.svg) [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/jtpio/jupyterlab-topbar/stable?urlpath=lab) [![PyPI](https://img.shields.io/pypi/v/jupyterlab-topbar.svg)](https://pypi.org/project/jupyterlab-topbar) Monorepo to experiment with the top bar space in JupyterLab. Similar to the [status bar](https://github.com/jupyterlab/jupyterlab/tree/master/packages/statusbar-extension), the top bar can be used to place a few indicators and optimize the overall space. Inspired by Gnome Shell Top Bar indicators. ![screencast](./doc/screencast.gif) ### Extensions - [jupyterlab-topbar-extension](./packages/jupyterlab-topbar-extension): generic extension to expose the top bar area - [jupyterlab-topbar-text](./packages/jupyterlab-topbar-text): add and edit custom text - [jupyterlab-system-monitor](https://github.com/jtpio/jupyterlab-system-monitor): show system metrics (memory usage) - [jupyterlab-logout](https://github.com/jtpio/jupyterlab-logout): add a "Log Out" button - [jupyterlab-theme-toggle](https://github.com/jtpio/jupyterlab-theme-toggle): switch between the Light and Dark themes ## Try it online Try the extensions in your browser with Binder: [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/jtpio/jupyterlab-topbar/stable?urlpath=lab) ## Installation ### JupyterLab 3.0 ```bash # container extension pip install jupyterlab-topbar # to install the topbar-text extension jupyter labextension install jupyterlab-topbar-text ``` ### JupyterLab 1.x and 2.x ```bash # container extension jupyter labextension install jupyterlab-topbar-extension # system metrics jupyter labextension install jupyterlab-system-monitor pip install nbresuse # custom text in the top bar jupyter labextension install jupyterlab-topbar-text # add a logout button jupyter labextension install jupyterlab-logout # theme toggling extension jupyter labextension install jupyterlab-theme-toggle ``` All-in-one install: ```bash jupyter labextension install jupyterlab-topbar-extension \ jupyterlab-system-monitor \ jupyterlab-topbar-text \ jupyterlab-logout \ jupyterlab-theme-toggle ``` ## Development ```bash # create a new conda environment conda create -n jupyterlab-topbar -c conda-forge jupyterlab nodejs -y conda activate jupyterlab-topbar # Install dependencies jlpm # Install the package in development mode pip install -e . # Link your development version of the extension with JupyterLab jlpm run develop # For the jupyterlab-topbar-text extension jlpm run link # Rebuild extension TypeScript source after making changes jlpm run build ``` ### Uninstall ```bash pip uninstall jupyterlab-topbar ``` %package -n python3-jupyterlab-topbar Summary: JupyterLab extension to expose the top bar space Provides: python-jupyterlab-topbar BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-jupyterlab-topbar # JupyterLab Top Bar ![Github Actions Status](https://github.com/jtpio/jupyterlab-topbar/workflows/Build/badge.svg) [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/jtpio/jupyterlab-topbar/stable?urlpath=lab) [![PyPI](https://img.shields.io/pypi/v/jupyterlab-topbar.svg)](https://pypi.org/project/jupyterlab-topbar) Monorepo to experiment with the top bar space in JupyterLab. Similar to the [status bar](https://github.com/jupyterlab/jupyterlab/tree/master/packages/statusbar-extension), the top bar can be used to place a few indicators and optimize the overall space. Inspired by Gnome Shell Top Bar indicators. ![screencast](./doc/screencast.gif) ### Extensions - [jupyterlab-topbar-extension](./packages/jupyterlab-topbar-extension): generic extension to expose the top bar area - [jupyterlab-topbar-text](./packages/jupyterlab-topbar-text): add and edit custom text - [jupyterlab-system-monitor](https://github.com/jtpio/jupyterlab-system-monitor): show system metrics (memory usage) - [jupyterlab-logout](https://github.com/jtpio/jupyterlab-logout): add a "Log Out" button - [jupyterlab-theme-toggle](https://github.com/jtpio/jupyterlab-theme-toggle): switch between the Light and Dark themes ## Try it online Try the extensions in your browser with Binder: [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/jtpio/jupyterlab-topbar/stable?urlpath=lab) ## Installation ### JupyterLab 3.0 ```bash # container extension pip install jupyterlab-topbar # to install the topbar-text extension jupyter labextension install jupyterlab-topbar-text ``` ### JupyterLab 1.x and 2.x ```bash # container extension jupyter labextension install jupyterlab-topbar-extension # system metrics jupyter labextension install jupyterlab-system-monitor pip install nbresuse # custom text in the top bar jupyter labextension install jupyterlab-topbar-text # add a logout button jupyter labextension install jupyterlab-logout # theme toggling extension jupyter labextension install jupyterlab-theme-toggle ``` All-in-one install: ```bash jupyter labextension install jupyterlab-topbar-extension \ jupyterlab-system-monitor \ jupyterlab-topbar-text \ jupyterlab-logout \ jupyterlab-theme-toggle ``` ## Development ```bash # create a new conda environment conda create -n jupyterlab-topbar -c conda-forge jupyterlab nodejs -y conda activate jupyterlab-topbar # Install dependencies jlpm # Install the package in development mode pip install -e . # Link your development version of the extension with JupyterLab jlpm run develop # For the jupyterlab-topbar-text extension jlpm run link # Rebuild extension TypeScript source after making changes jlpm run build ``` ### Uninstall ```bash pip uninstall jupyterlab-topbar ``` %package help Summary: Development documents and examples for jupyterlab-topbar Provides: python3-jupyterlab-topbar-doc %description help # JupyterLab Top Bar ![Github Actions Status](https://github.com/jtpio/jupyterlab-topbar/workflows/Build/badge.svg) [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/jtpio/jupyterlab-topbar/stable?urlpath=lab) [![PyPI](https://img.shields.io/pypi/v/jupyterlab-topbar.svg)](https://pypi.org/project/jupyterlab-topbar) Monorepo to experiment with the top bar space in JupyterLab. Similar to the [status bar](https://github.com/jupyterlab/jupyterlab/tree/master/packages/statusbar-extension), the top bar can be used to place a few indicators and optimize the overall space. Inspired by Gnome Shell Top Bar indicators. ![screencast](./doc/screencast.gif) ### Extensions - [jupyterlab-topbar-extension](./packages/jupyterlab-topbar-extension): generic extension to expose the top bar area - [jupyterlab-topbar-text](./packages/jupyterlab-topbar-text): add and edit custom text - [jupyterlab-system-monitor](https://github.com/jtpio/jupyterlab-system-monitor): show system metrics (memory usage) - [jupyterlab-logout](https://github.com/jtpio/jupyterlab-logout): add a "Log Out" button - [jupyterlab-theme-toggle](https://github.com/jtpio/jupyterlab-theme-toggle): switch between the Light and Dark themes ## Try it online Try the extensions in your browser with Binder: [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/jtpio/jupyterlab-topbar/stable?urlpath=lab) ## Installation ### JupyterLab 3.0 ```bash # container extension pip install jupyterlab-topbar # to install the topbar-text extension jupyter labextension install jupyterlab-topbar-text ``` ### JupyterLab 1.x and 2.x ```bash # container extension jupyter labextension install jupyterlab-topbar-extension # system metrics jupyter labextension install jupyterlab-system-monitor pip install nbresuse # custom text in the top bar jupyter labextension install jupyterlab-topbar-text # add a logout button jupyter labextension install jupyterlab-logout # theme toggling extension jupyter labextension install jupyterlab-theme-toggle ``` All-in-one install: ```bash jupyter labextension install jupyterlab-topbar-extension \ jupyterlab-system-monitor \ jupyterlab-topbar-text \ jupyterlab-logout \ jupyterlab-theme-toggle ``` ## Development ```bash # create a new conda environment conda create -n jupyterlab-topbar -c conda-forge jupyterlab nodejs -y conda activate jupyterlab-topbar # Install dependencies jlpm # Install the package in development mode pip install -e . # Link your development version of the extension with JupyterLab jlpm run develop # For the jupyterlab-topbar-text extension jlpm run link # Rebuild extension TypeScript source after making changes jlpm run build ``` ### Uninstall ```bash pip uninstall jupyterlab-topbar ``` %prep %autosetup -n jupyterlab-topbar-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-topbar -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri May 05 2023 Python_Bot - 0.6.1-1 - Package Spec generated