• Stars
    star
    1,046
  • Rank 42,431 (Top 0.9 %)
  • Language
    TypeScript
  • License
    BSD 3-Clause "New...
  • Created almost 6 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Variable Inspector extension for Jupyterlab

jupyterlab_variableinspector

Extension status PyPi_Version Build Binder

Jupyterlab extension that shows currently used variables and their values.
Contributions in any form are welcome!

Features

Demogif

  • Allows inspection of variables for both consoles and notebooks.
  • Allows inspection of matrices in a datagrid-viewer. This might not work for large matrices.
  • Allows an inline and interactive inspection of Jupyter Widgets.

Supported Languages

  • This extension is currently targets python as a main language but also supports the following languages with different levels of feature completeness

How it Works

In order to allow variable inspection, all content that is displayed first need to be sent from the kernel to the front end.
Therefore, opening large data frames with the datagrid viewer can dramatically increase your occupied memory and significantly slow down your browser.
Use at your own risk.

Requirements

  • JupyterLab >= 3.0

Requirements for python functionality

  • pandas and numpy are required to enable matrix inspection.
  • pyspark for spark support.
  • tensorflow and keras to allow inspection of tf objects.
  • torch for PyTorch support.

Requirements for R functionality

  • The repr library.

Requirements for ipywidgets functionality

The variable inspector can also display Jupyter interactive widgets:

ipywidgets

The requirements for this functionality are:

  • ipywidgets, which can be installed with pip install ipywidgets.

Install

To install the extension, execute:

pip install lckr_jupyterlab_variableinspector

Uninstall

To remove the extension, execute:

pip uninstall lckr_jupyterlab_variableinspector

Contributing

Development install

Note: You will need NodeJS to build the extension package.

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
# Change directory to the lckr_jupyterlab_variableinspector 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 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.

# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm 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 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:

jupyter lab build --minimize=False

Development uninstall

pip uninstall lckr_jupyterlab_variableinspector

In development mode, you will also need to remove the symlink created by jupyter labextension develop command. To find its location, you can run jupyter labextension list to figure out where the labextensions folder is located. Then you can remove the symlink named @lckr/jupyterlab_variableinspector within that folder.

Testing the extension

Frontend tests

This extension is using Jest for JavaScript code testing.

To execute them, execute:

jlpm
jlpm test

Integration tests

This extension uses Playwright for the integration tests (aka user level tests). More precisely, the JupyterLab helper Galata is used to handle testing the extension in JupyterLab.

More information are provided within the ui-tests README.

Packaging the extension

See RELEASE

More Repositories

1

jupyterlab-vim

Vim notebook cell bindings for JupyterLab
TypeScript
625
star
2

spellchecker

Spellchecker for JupyterLab notebook markdown cells and file editor.
TypeScript
199
star
3

rise

RISE: "Live" Reveal.js JupyterLab Slideshow Extension
TypeScript
132
star
4

jupyterlab-spreadsheet-editor

JupyterLab spreadsheet editor for tabular data (e.g. csv, tsv)
TypeScript
113
star
5

jupyterlab-topbar

JupyterLab Top Bar extensions
TypeScript
99
star
6

jupyterlab-kernelspy

A Jupyter Lab extension for inspecting messages to/from a kernel
TypeScript
76
star
7

jupyter-archive

A Jupyter/Jupyterlab extension to make, download and extract archive files.
Python
69
star
8

jupyterlab-unfold

An IDE-like file browser for JupyterLab
TypeScript
63
star
9

jupyter-videochat

Video chat with peers inside JupyterLab
TypeScript
57
star
10

jupyterlab-tour

A JupyterLab UI tour built on jupyterlab-tutorial and react-joyride.
TypeScript
53
star
11

jupyterlab-link-share

JupyterLab Extension to easily share a link to a running server on Binder
TypeScript
48
star
12

jupyterlab-cell-flash

JupyterLab extension to show a flash effect when a cell is executed ⚡ ✨
TypeScript
38
star
13

jlab-enhanced-cell-toolbar

A cell toolbar for JupyterLab.
TypeScript
36
star
14

jupyterlab-contrib.github.io

Management and website of JupyterLab Unofficial Extensions and Tools
Smarty
36
star
15

jupyter-ui-toolkit

UI Toolkit for Jupyter
TypeScript
33
star
16

jlab-enhanced-launcher

Alternative launcher for JupyterLab
TypeScript
26
star
17

jupyterlab-filesystem-access

[Experimental] Browse local files using the non-standard File System Access API
TypeScript
26
star
18

jupyterlab_toastify

Customize 'react-toastify' to integrate nicely in JupyterLab.
TypeScript
22
star
19

jupyterlab-app-cookiecutter

Kickstart your JupyterLab based standalone application 🚀
TypeScript
21
star
20

jupyterlab-theme-editor

Extension providing a theme editor where colors, font families and font sizes of the elements of the user interface can be varied
TypeScript
20
star
21

search-replace

Search and replace accross files
TypeScript
18
star
22

jupyterlab-pytutor

Python Tutor extension for JupyterLab
TypeScript
9
star
23

jupyterlab-open-url-parameter

JupyterLab extension to open files passed via a URL parameter.
TypeScript
8
star
24

jupyterlab-plugin-graph

JupyterLab extension to show an interactive dependency graph of the installed plugins
TypeScript
8
star
25

jupyterlab-fileopen

A JupyterLab extension that adds a shortcut for opening files using the OS file explorer
Python
7
star
26

jupyterlab-gitlab

A JupyterLab extension for browsing GitLab repositories
TypeScript
4
star
27

ipylgbst

A widget library for controlling LEGO® BOOST via web-bluetooth
Python
4
star
28

jlab-image-editor

Simple image editor for JupyterLab
TypeScript
4
star
29

jupyterlab-logout

Log out button for JupyterLab
Python
3
star
30

react-auth-google-example

Example enabling users to log in with Google Identity service for webapps.
TypeScript
1
star
31

jupyterlab-topbar-text

JupyterLab extension to display arbitrary text in the top bar
Python
1
star
32

.github

Health files for the @jupyterlab-contrib organization
1
star
33

jupyterlab-code-toc

Table of Contents JupyterLab extension with code content
TypeScript
1
star