npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

jupyterlab-ov

v0.1.0

Published

A JupyterLab extension for embedding system engineering component.

Downloads

4

Readme

jupyterlab-sai

A JupyterLab extension for standalone integration of software engineering component into jupyterlab.

Prerequisites

  • JupyterLab

Development

For a development install, do the following in the repository directory: (Please read the extension tutorial: https://jupyterlab.readthedocs.io/en/stable/developer/extension_tutorial.html#extension-tutorial)

  1. Create a new environment named jupyerlab-ext and activate it.
conda create -n jupyterlab-ext --override-channels --strict-channel-priority -c conda-forge -c anaconda jupyterlab cookiecutter nodejs git
conda activate jupyterlab-ext
  1. Build and install the extension for the development.
jlpm install
jupyter labextension install . --no-build
  1. Start a JupyterLab instance in watch mode (better for another terminal)
conda activate jupyterlab-ext
jupyter lab --watch
  1. For each edit of files, you need to rebuild
jlpm run build

일단 프로젝트명은 제 임의로 jupyter-sai라고 명명했습니다. 이 익스텐션을 만들기 위한 주요 구성 파일은 다음과 같습니다.

index.ts
widget.ts
javascript/editor.js

index.ts파일에선 익스텐션을 액티베이션합니다. 여기서 JupyterFrontEndPlugin을 메인으로 사용합니다.

const plugin: JupyterFrontEndPlugin<ISAITracker> = {
  activate,
  id: '@jupyterlab/SAI-extension:plugin',
  requires: [IFileBrowserFactory, ILayoutRestorer, IMainMenu, ICommandPalette],
  optional: [ILauncher],
  provides: ISAITracker,
  autoStart: true
};

FileBrowserFactory는 파일매니저에 파일을, IMainMenu는 메뉴 아이템을, ILauncher는 론쳐에 아이콘을 생성합니다.

widget.ts파일은 ABCWdigetFactory와 DocumentWidget을 이용해 위젯을 생성합니다. 이 위젯을 통해 메인 도큐먼트(메인화면)를 보여주고 onAfterShow event에서 editor를 생성하고 dirty state및 도큐먼트를 관리합니다.

editor.js 파일은 javascript constructor를 사용한 class로 구현되어 있습니다. editor.ts랑 연동되는 부분만 있을뿐 단순히 textarea를 생성해서 위젯에서 주어진 HTML DOM node에 붙여넣습니다.