Socket
Book a DemoInstallSign in
Socket

@opensumi/ide-notebook

Package Overview
Dependencies
Maintainers
8
Versions
357
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opensumi/ide-notebook

--- id: notebook title: Jupyter Notebook 功能模块 ---

3.9.0
latest
npmnpm
Version published
Weekly downloads
388
948.65%
Maintainers
8
Weekly downloads
 
Created
Source

id: notebook title: Jupyter Notebook 功能模块

基于 Libro 实现的 Jupyter Notebook 功能模块,可根据集成需求按需引入。

使用时需确保环境中已安装 jupyter,并在 jupyter 配置文件中添加以下内容:

c = get_config()
c.ServerApp.allow_origin = "*"
c.ServerApp.allow_remote_access = True
c.ServerApp.allow_root = True
c.ServerApp.ip = '0.0.0.0'
c.IdentityProvider.token = '<YOUR_TOKEN>'

运行 jupyter server 启动服务,将服务地址配置到 notebookServerHost 字段、token 信息填到 notebookServerToken 字段即可(token 设置为空字符串时可不填):

renderApp(
  getDefaultClientAppOpts({
    modules: [...AIModules, NotebookModule],
    opts: {
      // ...
      notebookServerHost: 'localhost:8888',
      notebookServerToken: '<YOUR_TOKEN>',
    },
  }),
);

注:目前 Notebook 能力依赖了 antd 组件库,会导致打包体积增大较多,请按需引入。

FAQs

Package last updated on 20 May 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.