jupyter lab 打开方式
Jupyter Lab 是 Jupyter Notebook 的下一代升级版,界面相对更友好,功能也更强大,更像一个IDE了。
可以到这个页面 https://jupyter.org/try 试用一下。
0. 安装jupyterlab
1 | pip install jupyterlab |
Jupyter Lab 是 Jupyter Notebook 的下一代升级版,界面相对更友好,功能也更强大,更像一个IDE了。
可以到这个页面 https://jupyter.org/try 试用一下。
1 | pip install jupyterlab |
1 | cd hexo |
Environment Variables
选项中新建 github_token
项,将刚刚获得的token填进去ref: https://matplotlib.org/3.1.1/api/animation_api.html
1 | import matplotlib.animation as animation |
ref: https://matplotlib.org/3.1.1/api/animation_api.html
1 | import matplotlib.animation as animation |
ref: https://matplotlib.org/3.1.1/api/animation_api.html
1 | import matplotlib.animation as animation |
ref: https://matplotlib.org/stable/api/markers_api.html
ref: https://matplotlib.org/stable/gallery/lines_bars_and_markers/marker_reference.html#sphx-glr-gallery-lines-bars-and-markers-marker-reference-py
1 |
|
ref: https://matplotlib.org/stable/api/markers_api.html
ref: https://matplotlib.org/stable/gallery/lines_bars_and_markers/marker_reference.html#sphx-glr-gallery-lines-bars-and-markers-marker-reference-py
1 |
|
下载匹配的版本,https://github.com/fatedier/frp/releases
1 | # frps.ini |
1 | ./frps -c ./frps.ini |
下载匹配的版本,https://github.com/fatedier/frp/releases
1 | # frps.ini |
1 | ./frps -c ./frps.ini |
RunCat是一款 mac应用,用奔跑的猫来显示当前系统资源(CPU)占用情况。
但是只有mac版,于是用python撸了一个,可以在windows任务栏(通知区域)养猫。
首先用psutil
获得CPU或内存的使用情况,然后用pyqt5创建QSystemTrayIcon显示在任务栏的托盘区域。
GPU的使用情况可以用 nvidia-ml-py, https://pypi.org/project/nvidia-ml-py/
的pynvml模块(仅限nvidia gpu)。
2019年升级了装备 XPS 9370,但是 Solidworks 2014使用时非常卡。
XPS 9370 配置的是 Intel UHD 620 集显,公司还有个笔记本是 ThinkPad New S2,是HD 620显卡,solidworks 却不卡。
将 Solidworks 2016 原有的显卡系列随便选一个导出来,然后用文本编辑器打开,将显卡系列的名称(如 HD Graphics)改为 UHD Graphics 620,Workarounds 值改为 00000009。
或直接将以下导入注册表。
1 | Windows Registry Editor Version 5.00 |
在网上搜了一圈大致有以下几个解决方法:
前一段做试验,需要远程监控现场的电脑;
写了一个定时截屏并把图片发送至邮箱的脚本,这样微信就可以得到通知。
1 | from PIL import ImageGrab |
1 | import threading |
处理excel数据时遇到了个问题,数据导出来总是不全。
后来发现是 *.xls 格式的问题:
xls格式 最大行数为
65535
xlsx格式 最大行数为
1048576
(满足要求了)
而且xlsx文件大小只有原来的1/3左右。
但是手上有一大堆旧的xls文件需要转换。
1 | pip install pywin32 |
1 | import os |
1 | pip install jupyter |
打开python:
1 | from notebook.auth import passwd |
根据提示输入密码,得到类似下面的密文:
‘sha1:ce23d945972*********’
复制下来。
1 | jupyter notebook --generate-config |
sudo nano jupyter_notebook_config.py
1 | c.NotebookApp.ip = '*' |
1 | nohup jupyter notebook & |
试试打开 http://xxx.xxx.xxx.xxx:3333
输入第一步设置的密码即可