JupyterLab圣诞节主题,由Isabela Presedo-Floyd设计
项目描述
Ξ 圣诞节主题JupyterLab
由Isabela Presedo-Floyd设计,在Quansight的Jovyans的帮助下编码
使用
conda create -y -n jupyter-theme-christmas python=3.8 && \
conda activate jupyter-theme-christmas && \
pip install --pre jupyterlab==3.0.0rc10 jupyter_theme_christmas --upgrade --force-reinstall
# How to launch jupyter lab with a defined theme?
mkdir -p ~/.jupyter/lab/user-settings/\@jupyterlab/apputils-extension && \
CONF="{ \"theme\": \"JupyterLab Christmas\" }" && \
cat > ~/.jupyter/lab/user-settings/\@jupyterlab/apputils-extension/themes.jupyterlab-settings <<EOF
${CONF}
EOF
jupyter lab
TODO
- 更新启动器页面,例如 https://github.com/fcollonval/jlab-enhanced-launcher
- 将variables.css简化为仅需要的CSS?
- 引入更多类似https://github.com/timkpaine/jupyterlab_miami_nights的精美UI:搜索工具 +霓虹灯牌 + 折叠器 +霓虹灯光 + 滚动条 + FM-84的"Atlas"(兼容WebKit浏览器)+ 演示模式中的惊喜(顶部菜单 --> 查看 --> 演示模式)
开发
# Build the extension and link for dev in shell 1.
jupyter labextension develop --overwrite
# List extensions.
jupyter labextension list
pip list | grep jupyter-theme-christmas
# Run and watch jupyterlab in shell 1.
jlpm watch
# Run and watch jupyterlab in shell 2.
# Look at the remote entry javascript, a webpack5 feature.
mkdir ~/notebooks && \
jupyter lab \
--dev-mode \
--watch \
--notebook-dir=~/notebooks \
--ServerApp.token= \
--extensions-in-dev-mode
构建
# Generate sourcemaps.
jupyter labextension build --development True .
jupyter lab build --minimize=False
# Do not generate sourcemaps.
jupyter labextension build .
jupyter lab build
发布
pip install jupyter_packaging twine && \
python setup.py sdist bdist_wheel && \
twine upload dist/*
jlpm build:lib && \
npm publish --access public
项目详情
下载文件
下载适合您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。
源代码分布
jupyter_theme_christmas-0.0.1.tar.gz (26.4 kB 查看哈希)
构建分发版
关闭
jupyter_theme_christmas-0.0.1.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | f0985b669173b2aa2958a4d62753c77ce52e39649407753b893f7eb3088ff3d2 |
|
MD5 | d72fef130cf84a7792d39eb2177a2d40 |
|
BLAKE2b-256 | 2bf0be4a51cbecabafec1d3e754079d4f41040cdb20d3083816489b3bc4f487e |
关闭
jupyter_theme_christmas-0.0.1-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | fb688764f6dd085af5c54b007a916dcf656efdb740a91e367e37d5c2dc1f54a0 |
|
MD5 | 550e01592aa36a875141c16dcb39831e |
|
BLAKE2b-256 | 7240eee76328555b5a49e11e062086bae5738213c39f627e8fc7490930ea2903 |