Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [datalayer]
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1

- name: Install dependencies
run: python -m pip install -U jupyterlab==4.1.0b0
run: python -m pip install -U jupyterlab==4.1.0

- name: Lint the extension
run: |
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
sudo rm -rf $(which node)
sudo rm -rf $(which node)

pip install "jupyterlab==4.1.0b0" jupyter_viewer*.whl
pip install "jupyterlab==4.1.0" jupyter_viewer*.whl


jupyter server extension list
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
- name: Install the extension
run: |
set -eux
python -m pip install "jupyterlab==4.1.0b0" jupyter_viewer*.whl
python -m pip install "jupyterlab==4.1.0" jupyter_viewer*.whl

- name: Install dependencies
working-directory: ui-tests
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,4 @@ dmypy.json
!**/.env
!.github
!.devcontainer
!.licenserc.yaml
37 changes: 37 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
header:
license:
spdx-id: Datalayer
copyright-owner: Datalayer, Inc.
copyright-year: 2021-2025
content: |
Copyright (c) [year] [owner]
Distributed under the terms of the Modified BSD License.

paths-ignore:
- '**/*.ipynb'
- '**/*.json'
- '**/*.txt'
- '**/*.md'
- '**/*.svg'
- '**/*.tsbuildinfo'
- '**/*.yml'
- '**/*.yaml'
- '**/build'
- '**/lib'
- '**/node_modules'
- '**/MANIFEST.in'
- '**/static'
- '**/typings'
- '**/schemas'
- '**/themes'
- '*.map.js'
- '*.bundle.js'
- '**/.*'
- 'LICENSE'
- '.devcontainer/resources/'
- '**/LICENSE.txt'
- '**/*.nblink'
- 'docs/docs'
- 'patches/'

comment: on-failure
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Copyright (c) 2021-2025 Datalayer, Inc.
# Distributed under the terms of the Modified BSD License.

# Copyright (c) 2021-2024 Datalayer, Inc.
# Distributed under the terms of the Modified BSD License.

# Copyright (c) Datalayer, Inc. https://datalayer.io
# Distributed under the terms of the MIT License.

Expand Down
31 changes: 22 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Copyright (c) 2021-2025 Datalayer, Inc.
# Distributed under the terms of the Modified BSD License.

# Copyright (c) 2021-2024 Datalayer, Inc.
# Distributed under the terms of the Modified BSD License.

# Copyright (c) Datalayer, Inc. https://datalayer.io
# Distributed under the terms of the MIT License.

Expand All @@ -15,33 +21,33 @@ help: ## display this help
default: help ## default target is help

env: warning ## env
micromamba env create -y -n ${ENV_NAME} -f environment.yml
conda env create -y -n ${ENV_NAME} -f environment.yml
@exec echo "-------------------------------------------------------"
@exec echo "micromamba activate ${ENV_NAME}"
@exec echo "conda activate ${ENV_NAME}"
@exec echo "-------------------------------------------------------"

env-rm: warning ## env-rm
micromamba deactivate && \
micromamba remove -y --name ${ENV_NAME} --all || true
conda deactivate && \
conda remove -y --name ${ENV_NAME} --all || true

kill:
yarn kill
npm run kill

warning:
echo "\x1b[34m\x1b[43mEnsure you have run \x1b[1;37m\x1b[41m conda deactivate \x1b[22m\x1b[34m\x1b[43m before invoking this.\x1b[0m"

clean: ## clean
yarn clean
npm clean

build: ## build
yarn build
npm run build

build-webpack: ## build-webpack
yarn build:webpack
npm run build:webpack

build-webpack-prod: ## build-webpack-prod
rm -fr ./dist
yarn build:webpack:prod
npm run build:webpack:prod

build-prod: ## build-prod
git clean -fdx
Expand Down Expand Up @@ -98,3 +104,10 @@ publish: build-webpack-prod ## publish
--paths "/*" \
--profile datalayer && \
echo open ✨ https://viewer.datalayer.tech )

clean-npm: ## clean-npm
npm run clean

publish-npm: clean-npm build ## publish-npm
npm publish
echo open https://www.npmjs.com/package/@datalayer/jupyter-viewer
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ open http://localhost:8888/jupyter_viewer/github/datalayer/examples/main/pytorch
Develop the Web application.

```bash
yarn
yarn start
npm i
npm run start
```

```bash
Expand Down Expand Up @@ -74,7 +74,7 @@ pip install -e .[test]
jupyter labextension develop . --overwrite
jupyter labextension list
jupyter server extension list
yarn jupyterlab
npm run jupyterlab
```

```bash
Expand Down
10 changes: 10 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
/*
* Copyright (c) 2021-2025 Datalayer, Inc.
* Distributed under the terms of the Modified BSD License.
*/

/*
* Copyright (c) 2021-2024 Datalayer, Inc.
* Distributed under the terms of the Modified BSD License.
*/

module.exports = require('@jupyterlab/testutils/lib/babel.config');
6 changes: 6 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Copyright (c) 2021-2025 Datalayer, Inc.
# Distributed under the terms of the Modified BSD License.

# Copyright (c) 2021-2024 Datalayer, Inc.
# Distributed under the terms of the Modified BSD License.

import pytest

pytest_plugins = ("jupyter_server.pytest_plugin", )
Expand Down
6 changes: 6 additions & 0 deletions dev/config/jupyter_server_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Copyright (c) 2021-2025 Datalayer, Inc.
# Distributed under the terms of the Modified BSD License.

# Copyright (c) 2021-2024 Datalayer, Inc.
# Distributed under the terms of the Modified BSD License.

"""Configuration for the Jupyter development server."""

import os
Expand Down
6 changes: 6 additions & 0 deletions dev/sh/kill.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2025 Datalayer, Inc.
# Distributed under the terms of the Modified BSD License.

# Copyright (c) 2021-2024 Datalayer, Inc.
# Distributed under the terms of the Modified BSD License.


# Copyright (c) Datalayer, Inc. https://datalayer.io
# Distributed under the terms of the MIT License.
Expand Down
6 changes: 6 additions & 0 deletions dev/sh/start-jupyter-server.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2025 Datalayer, Inc.
# Distributed under the terms of the Modified BSD License.

# Copyright (c) 2021-2024 Datalayer, Inc.
# Distributed under the terms of the Modified BSD License.


# Copyright (c) Datalayer, Inc. https://datalayer.io
# Distributed under the terms of the MIT License.
Expand Down
14 changes: 10 additions & 4 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Copyright (c) 2021-2025 Datalayer, Inc.
# Distributed under the terms of the Modified BSD License.

# Copyright (c) 2021-2024 Datalayer, Inc.
# Distributed under the terms of the Modified BSD License.

# Copyright (c) Datalayer, Inc. https://datalayer.io
# Distributed under the terms of the MIT License.

Expand Down Expand Up @@ -33,19 +39,19 @@ env:

clean: ## clear
($(CONDA_ACTIVATE) ${ENV_NAME}; \
yarn clear )
npm run clean )

install: ## install
($(CONDA_ACTIVATE) ${ENV_NAME}; \
yarn install )
npm ci )

start: ## start
($(CONDA_ACTIVATE) ${ENV_NAME}; \
yarn start )
npm start )

build: ## build
($(CONDA_ACTIVATE) ${ENV_NAME}; \
yarn build )
npm run build )

publish: build ## publish
($(CONDA_ACTIVATE) ${ENV_NAME}; \
Expand Down
10 changes: 10 additions & 0 deletions docs/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Copyright (c) 2021-2025 Datalayer, Inc.
* Distributed under the terms of the Modified BSD License.
*/

/*
* Copyright (c) 2021-2024 Datalayer, Inc.
* Distributed under the terms of the Modified BSD License.
*/

module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
};
6 changes: 3 additions & 3 deletions docs/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ open http://localhost:8888/jupyter_viewer/github/datalayer/examples/main/pytorch
Develop the Web application.

```bash
yarn
yarn start
npm i
npm run start
```

```bash
Expand Down Expand Up @@ -73,7 +73,7 @@ pip install -e .[test]
jupyter labextension develop . --overwrite
jupyter labextension list
jupyter server extension list
yarn jupyterlab
npm run jupyterlab
```

```bash
Expand Down
26 changes: 18 additions & 8 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Copyright (c) 2021-2025 Datalayer, Inc.
* Distributed under the terms of the Modified BSD License.
*/

/*
* Copyright (c) 2021-2024 Datalayer, Inc.
* Distributed under the terms of the Modified BSD License.
*/

/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: '🪐 👀 Jupyter Viewer documentation',
Expand Down Expand Up @@ -31,19 +41,19 @@ module.exports = {
href: 'https://www.linkedin.com/company/datalayer',
position: 'right',
className: 'header-linkedin-link',
'aria-label': 'Linkedin',
'aria-label': 'LinkedIn',
},
{
href: 'https://x.com/DatalayerIO',
href: 'https://bsky.app/profile/datalayer.ai',
position: 'right',
className: 'header-x-link',
'aria-label': 'X',
className: 'header-bluesky-link',
'aria-label': 'Bluesky',
},
{
href: 'https://github.com/datalayer/jupyter-viewer',
position: 'right',
className: 'header-github-link',
'aria-label': 'GitHub repository',
'aria-label': 'GitHub',
},
{
href: 'https://datalayer.io',
Expand Down Expand Up @@ -73,11 +83,11 @@ module.exports = {
href: 'https://github.com/datalayer',
},
{
label: 'X',
href: 'https://x.com/datalayerio',
label: 'Bluesky',
href: 'https://bsky.app/profile/datalayer.ai',
},
{
label: 'Linkedin',
label: 'LinkedIn',
href: 'https://www.linkedin.com/company/datalayer',
},
],
Expand Down
16 changes: 8 additions & 8 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "2.4.0",
"@docusaurus/preset-classic": "2.4.0",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.2.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-modal-image": "2.5.0",
"react-router-dom": "6.22.3"
"@docusaurus/core": "^3.5.2",
"@docusaurus/preset-classic": "^3.5.2",
"@mdx-js/react": "^3.0.1",
"clsx": "^2.1.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-modal-image": "^2.6.0",
"react-router-dom": "^6.22.3"
},
"browserslist": {
"production": [
Expand Down
10 changes: 10 additions & 0 deletions docs/sidebars.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Copyright (c) 2021-2025 Datalayer, Inc.
* Distributed under the terms of the Modified BSD License.
*/

/*
* Copyright (c) 2021-2024 Datalayer, Inc.
* Distributed under the terms of the Modified BSD License.
*/

/**
* Creating a sidebar enables you to:
- create an ordered group of docs
Expand Down
10 changes: 10 additions & 0 deletions docs/src/components/HomepageFeatures.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* Copyright (c) 2021-2025 Datalayer, Inc.
* Distributed under the terms of the Modified BSD License.
*/

/*
* Copyright (c) 2021-2024 Datalayer, Inc.
* Distributed under the terms of the Modified BSD License.
*/

import React from 'react';
import clsx from 'clsx';
import styles from './HomepageFeatures.module.css';
Expand Down
Loading
Loading