Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
Soltus committed May 20, 2023
1 parent 3834ead commit 8b5a0bf
Show file tree
Hide file tree
Showing 4 changed files with 138 additions and 54 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ jupyter lab --port='6969' --ip='*' --no-browser --allow-root --notebook-dir='D:\

--notebook-dir 传参因人而异,不出意外的话复苏成功。在终端 CTRL + 单击链接或者手动打开浏览器访问 [http://127.0.0.1:6969/lab](http://127.0.0.1:6969/lab) ,时间交给你了

可以使用 `pip list --outdated` 检查过时的包

# 初始化工作

参考 [index.ipynb](https://github.com/Hi-Windom/jupyter-binder/blob/main/index.ipynb)
71 changes: 68 additions & 3 deletions index.ipynb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"id": "9ce9dc8a-37bd-4c05-b88e-df5801d2a93e",
"metadata": {},
Expand Down Expand Up @@ -36,6 +37,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "a428e102-eb76-49bf-bb8e-7267cfae5f4a",
"metadata": {
Expand All @@ -46,6 +48,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "b26d6ee8-fd2b-4e9c-9453-678d8cb544af",
"metadata": {},
Expand All @@ -57,6 +60,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "b8ade299-2fbd-435f-8e78-e56f0eab7e76",
"metadata": {},
Expand All @@ -65,6 +69,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "6281db30-496b-4496-a16f-f78650012617",
"metadata": {},
Expand All @@ -85,7 +90,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 6,
"id": "208ebefc-053d-486d-af30-3d95e3eee16f",
"metadata": {
"execution": {
Expand All @@ -97,10 +102,69 @@
},
"tags": []
},
"outputs": [],
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING:pip._internal.metadata.base:Ignoring invalid distribution -upyter-core (d:\\x-s01\\conda3\\envs\\vsc\\lib\\site-packages)\n",
" ERROR: Could not find a version that satisfies the requirement jupyterlab>=4.0.0 (from versions: 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.0.10, 0.0.13, 0.1.1, 0.1.2, 0.2.0, 0.3.0, 0.4.0, 0.4.1, 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.9.0, 0.9.1, 0.10.0, 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.12.0, 0.12.1, 0.13.0, 0.13.1, 0.13.2, 0.14.0, 0.15.0, 0.15.1, 0.16.0, 0.16.2, 0.17.0, 0.17.1, 0.17.2, 0.17.4, 0.17.5, 0.18.0.dev1, 0.18.0, 0.18.1, 0.19.0, 0.20.0rc1, 0.20.0, 0.20.1, 0.20.2, 0.20.3, 0.20.4, 0.21.0rc1, 0.21.0rc2, 0.21.0rc3, 0.21.0rc4, 0.21.0rc5, 0.21.0, 0.22.0rc0, 0.22.0, 0.22.1, 0.23.0rc0, 0.23.0rc1, 0.23.0, 0.23.1, 0.23.2, 0.24.0rc0, 0.24.0rc1, 0.24.0rc2, 0.24.0, 0.24.1, 0.25.0rc0, 0.25.0rc1, 0.25.0, 0.25.1, 0.25.2rc0, 0.25.2, 0.26.0rc0, 0.26.0rc1, 0.26.0, 0.26.1, 0.26.2, 0.26.3, 0.26.4, 0.26.5, 0.27.0rc0, 0.27.0rc1, 0.27.0rc2, 0.27.0rc3, 0.27.0rc4, 0.27.0rc5, 0.27.0, 0.27.1, 0.27.2, 0.28.0rc0, 0.28.0rc1, 0.28.0rc2, 0.28.0rc3, 0.28.0, 0.28.1, 0.28.2, 0.28.3, 0.28.4, 0.28.5, 0.28.6, 0.28.7, 0.28.8, 0.28.10, 0.28.11, 0.28.12, 0.28.13, 0.28.14, 0.28.15, 0.29.0rc0, 0.29.0, 0.29.1, 0.29.2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3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.14, 3.1.16, 3.1.17, 3.1.18, 3.1.19, 3.2.0a0, 3.2.0a1, 3.2.0b0, 3.2.0rc0, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 3.2.8, 3.2.9, 3.3.0a1, 3.3.0a2, 3.3.0a3, 3.3.0b0, 3.3.0rc0, 3.3.0, 3.3.1, 3.3.2, 3.3.3, 3.3.4, 3.4.0a0, 3.4.0b0, 3.4.0rc0, 3.4.0, 3.4.1, 3.4.2, 3.4.3, 3.4.4, 3.4.5, 3.4.6, 3.4.7, 3.4.8, 3.5.0a0, 3.5.0b0, 3.5.0rc0, 3.5.0, 3.5.1, 3.5.2, 3.5.3, 3.6.0a0, 3.6.0a1, 3.6.0a2, 3.6.0a3, 3.6.0a4, 3.6.0a5, 3.6.0b0, 3.6.0rc0, 3.6.0rc1, 3.6.0, 3.6.1, 3.6.2, 3.6.3, 4.0.0a0, 4.0.0a1, 4.0.0a3, 4.0.0a4, 4.0.0a6, 4.0.0a7, 4.0.0a8, 4.0.0a9, 4.0.0a10, 4.0.0a11, 4.0.0a12, 4.0.0a13, 4.0.0a14, 4.0.0a15, 4.0.0a16, 4.0.0a17, 4.0.0a18, 4.0.0a19, 4.0.0a20, 4.0.0a21, 4.0.0a22, 4.0.0a23, 4.0.0a24, 4.0.0a25, 4.0.0a26, 4.0.0a27, 4.0.0a28, 4.0.0a29, 4.0.0a30, 4.0.0a31, 4.0.0a32, 4.0.0a33, 4.0.0a34, 4.0.0a35, 4.0.0a36, 4.0.0a37, 4.0.0b0, 4.0.0b1, 4.0.0b2, 4.0.0rc0, 4.0.0rc1)\n",
"Traceback (most recent call last):\n",
" File \"d:\\X-S01\\conda3\\envs\\vsc\\lib\\site-packages\\pip\\_vendor\\resolvelib\\resolvers.py\", line 348, in resolve\n",
" self._add_to_criteria(self.state.criteria, r, parent=None)\n",
" File \"d:\\X-S01\\conda3\\envs\\vsc\\lib\\site-packages\\pip\\_vendor\\resolvelib\\resolvers.py\", line 173, in _add_to_criteria\n",
" raise RequirementsConflicted(criterion)\n",
"pip._vendor.resolvelib.resolvers.RequirementsConflicted: Requirements conflict: SpecifierRequirement('jupyterlab>=4.0.0')\n",
"\n",
"During handling of the above exception, another exception occurred:\n",
"\n",
"Traceback (most recent call last):\n",
" File \"d:\\X-S01\\conda3\\envs\\vsc\\lib\\site-packages\\pip\\_internal\\resolution\\resolvelib\\resolver.py\", line 92, in resolve\n",
" result = self._result = resolver.resolve(\n",
" File \"d:\\X-S01\\conda3\\envs\\vsc\\lib\\site-packages\\pip\\_vendor\\resolvelib\\resolvers.py\", line 481, in resolve\n",
" state = resolution.resolve(requirements, max_rounds=max_rounds)\n",
" File \"d:\\X-S01\\conda3\\envs\\vsc\\lib\\site-packages\\pip\\_vendor\\resolvelib\\resolvers.py\", line 350, in resolve\n",
" raise ResolutionImpossible(e.criterion.information)\n",
"pip._vendor.resolvelib.resolvers.ResolutionImpossible: [RequirementInformation(requirement=SpecifierRequirement('jupyterlab>=4.0.0'), parent=None)]\n",
"\n",
"The above exception was the direct cause of the following exception:\n",
"\n",
"Traceback (most recent call last):\n",
" File \"d:\\X-S01\\conda3\\envs\\vsc\\lib\\runpy.py\", line 197, in _run_module_as_main\n",
" return _run_code(code, main_globals, None,\n",
" File \"d:\\X-S01\\conda3\\envs\\vsc\\lib\\runpy.py\", line 87, in _run_code\n",
" exec(code, run_globals)\n",
" File \"d:\\X-S01\\conda3\\envs\\vsc\\lib\\site-packages\\piptools\\__main__.py\", line 19, in <module>\n",
" cli()\n",
" File \"d:\\X-S01\\conda3\\envs\\vsc\\lib\\site-packages\\click\\core.py\", line 1130, in __call__\n",
" return self.main(*args, **kwargs)\n",
" File \"d:\\X-S01\\conda3\\envs\\vsc\\lib\\site-packages\\click\\core.py\", line 1055, in main\n",
" rv = self.invoke(ctx)\n",
" File \"d:\\X-S01\\conda3\\envs\\vsc\\lib\\site-packages\\click\\core.py\", line 1657, in invoke\n",
" return _process_result(sub_ctx.command.invoke(sub_ctx))\n",
" File \"d:\\X-S01\\conda3\\envs\\vsc\\lib\\site-packages\\click\\core.py\", line 1404, in invoke\n",
" return ctx.invoke(self.callback, **ctx.params)\n",
" File \"d:\\X-S01\\conda3\\envs\\vsc\\lib\\site-packages\\click\\core.py\", line 760, in invoke\n",
" return __callback(*args, **kwargs)\n",
" File \"d:\\X-S01\\conda3\\envs\\vsc\\lib\\site-packages\\click\\decorators.py\", line 26, in new_func\n",
" return f(get_current_context(), *args, **kwargs)\n",
" File \"d:\\X-S01\\conda3\\envs\\vsc\\lib\\site-packages\\piptools\\scripts\\compile.py\", line 589, in cli\n",
" results = resolver.resolve(max_rounds=max_rounds)\n",
" File \"d:\\X-S01\\conda3\\envs\\vsc\\lib\\site-packages\\piptools\\resolver.py\", line 590, in resolve\n",
" is_resolved = self._do_resolve(\n",
" File \"d:\\X-S01\\conda3\\envs\\vsc\\lib\\site-packages\\piptools\\resolver.py\", line 622, in _do_resolve\n",
" resolver.resolve(\n",
" File \"d:\\X-S01\\conda3\\envs\\vsc\\lib\\site-packages\\pip\\_internal\\resolution\\resolvelib\\resolver.py\", line 101, in resolve\n",
" raise error from e\n",
"pip._internal.exceptions.DistributionNotFound: No matching distribution found for jupyterlab>=4.0.0\n"
]
}
],
"source": [
"# 生成 windows AMD64平台的依赖清单\n",
"# win.requirements.in 不是UTF-8编码,因此需要使用VSCode打开\n",
"# win.requirements.in 的 UTF-8 编码请不要更改,不要在里面写入中文\n",
"# 运行前,检查所有已安装包的可执行文件是否均未在运行(例如 jupyter),避免占用或锁定导致的报错。同时也请注意:运行该命令会覆盖当前环境已安装的包(可在 win.requirements.in 锁版本)\n",
"# 使用的源会影响是否找到所有 win.requirements.in 中列出的包,这是由于有些镜像收录不全或者版本更新延后,此时如果网络允许可以使用官方 PyPi 源。一般情况下推荐使用腾讯云镜像加速 -i https://mirrors.tencent.com/pypi/simple\n",
"!python -m piptools compile --quiet --upgrade --resolver=backtracking win.requirements.in --output-file win.requirements.txt"
]
},
Expand All @@ -117,6 +181,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "2de8b9b3-ef22-4813-8f8e-5d75e9f9e031",
"metadata": {},
Expand Down
19 changes: 9 additions & 10 deletions win.requirements.in
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#>>> 完整的 Windows AMD64 依赖包清单 <<<#
#>>> Complete Windows AMD64 dependency package manifest <<<#
#>>> Hi-Windom 2023 | QQ: 694357845 <<<#

##########################################################################
################################ 基础环境 ################################
############################ Base environment ############################
##########################################################################
jupyterlab
# lab 核心插件
## Lab core plugin
jupyterlab-language-pack-zh-CN
jupyterlab-git
ipywidgets==7.6.6
Expand All @@ -14,7 +15,7 @@ ipympl
nbdime
jupyter-wysiwyg
jupyter-archive
#>>> python-lsp-server (@krassowski/jupyterlab-lsp) 貌似和 jupyterlab-lsp 一样。但是禁用和卸载不方便
#>>> python-lsp-server (@krassowski/jupyterlab-lsp) seems to be the same as jupyterlab-lsp.
jupyterlab-lsp
python-lsp-server
#>>> instead of jedi-language-server
Expand All @@ -25,23 +26,21 @@ jupyterlab-recents
jupyterlab-cell-flash
jupyterlab_execute_time
jupyterspot
# lab 插件
jupyter_scheduler
jupyterlab_pygments
jupyterlab_templates
ipyuploads
ipycytoscape
# 实用工具包
# Practical toolkit
rich
dearpygui
scalene
pyinspect

##########################################################################
################################ 扩展环境 ################################
######################### Extended environment ###########################
##########################################################################
# 业务包
## 数据分析与可视化常用包
## Common packages for data analysis and visualization
numpy
sympy
scipy
Expand All @@ -52,7 +51,7 @@ pandasgui
Pillow
hiplot
jieba
## 网络工具常用包
## Commonly used packages for network tools
requests
beautifulsoup4
fastapi
Expand Down
Loading

0 comments on commit 8b5a0bf

Please sign in to comment.