New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jlab-enhanced/cell-toolbar

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jlab-enhanced/cell-toolbar

A cell toolbar for JupyterLab.

  • 2.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-94.74%
Maintainers
2
Weekly downloads
 
Created
Source

@jlab-enhanced/cell-toolbar

Github Actions Status Binder npm

A cell toolbar for JupyterLab.

Demonstration

There are some Settings to tune the available buttons and the look of this extension.

Requirements

  • JupyterLab >= 2.0,<3

Install

jupyter labextension install @jlab-enhanced/cell-toolbar

Uninstall

jupyter labextension uninstall @jlab-enhanced/cell-toolbar

Settings

  • defaultTags: The list of default available tags. For example, using the following settings:
{
    "defaultTags": ["hide", "slide"]
}

default tags

  • leftMenu and rightMenu: The action buttons to be displayed on the left and right of the cell toolbar. For example, using the following settings:
{
    "leftMenu": [
        {
          "command": "notebook:run-cell",
          "icon": "ui-components:run"
        }
    ],
    "rightMenu": [
        {
          "command": "notebook:delete-cell",
          "icon": "@jlab-enhanced/cell-toolbar:delete"
        }
    ]
}

custom actions

The default JupyterLab icon names can be found in the ui-components package.

  • leftSpace: The left empty white space in pixel. For example, using the following settings:
{
    "leftSpace": 48
}

left_space

Alternatives

Don't like what you see here? Try these other approaches:

Contributing

Development Install

The jlpm command is JupyterLab's pinned version of yarn that is installed with JupyterLab. You may use yarn or npm in lieu of jlpm below.

# Clone the repo to your local environment
# Move to jlab-enhanced-cell-toolbar directory

# Install dependencies
jlpm
# Build Typescript source
jlpm build
# Link your development version of the extension with JupyterLab
jupyter labextension install .
# Rebuild Typescript source after making changes
jlpm build
# Rebuild JupyterLab after making any changes
jupyter lab build

You can watch the source directory and run JupyterLab in watch mode to watch for changes in the extension's source and automatically rebuild the extension and application.

# Watch the source directory in another terminal tab
jlpm watch
# Run jupyterlab in watch mode in one terminal tab
jupyter lab --watch

Now every change will be built locally and bundled into JupyterLab. Be sure to refresh your browser page after saving file changes to reload the extension (note: you'll need to wait for webpack to finish, which can take 10s+ at times).

Keywords

FAQs

Package last updated on 07 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc