linux与windows共享剪贴板(clipboard)
其实linux和windows之间不需要共享剪贴板,直接在putty中,按住SHIFT+鼠标选择就可以了。
如果要极客一点,参考:https://www.cnblogs.com/vastiny/p/4234735.html
tmux
将以下配置加入到 Tmux 的配置文件 ~/.tmux.conf 中(没有此文件就创建一个):
# Set prefix to Ctrl-z
unbind C-b
set -g prefix C-z
bind z send-prefix
# 开启鼠标模式
set -g mouse on
# 如果喜欢给窗口自定义命名,那么需要关闭窗口的自动命名
# set-option -g allow-rename off
# 如果对 vim 比较熟悉,可以将 copy mode 的快捷键换成 vi 模式
set-window-option -g mode-keys vi
Update config:
tmux source-file ~/.tmux.conf
对于滚屏:
it's not enough to just reload your .tmux.conf you need to restart your tmux, e.g.
tmux kill-server && tmux
我的常用快捷键:
会话:
$重命名当前会话
s选择会话列表
ddetach 当前会话,运行后将会退出 tmux 进程,返回至 shell 主进程
窗格:
%左右平分出两个窗格
"上下平分出两个窗格
x关闭当前窗格
窗口:
c新建窗口,此时当前窗口会切换至新窗口,不影响原有窗口的状态
p切换至上一窗口
n切换至下一窗口
w窗口列表选择,注意 macOS 下使用⌃p和⌃n进行上下选择
&关闭当前窗口
,重命名窗口,可以使用中文,重命名后能在 tmux 状态栏更快速的识别窗口 id
参考资料:
https://github.com/brantb/dotfiles/blob/master/tmux.conf
https://github.com/tony/tmux-config
https://superuser.com/a/1007721
tmux教程:
JupyterLab
ipywidgets 包可实现 jupyter notebook 的控件交互。
安装
jupyter labextension install @jupyter-widgets/jupyterlab-manager
效果:https://www.jianshu.com/p/0fa7e896d698
Static Interactive Widgets for IPython Notebooks
https://blog.youkuaiyun.com/XnCSD/article/details/79518793
各种一块装
jupyter labextension install @jupyterlab/github @jupyterlab/google-drive @jupyter-widgets/jupyterlab-manager jupyterlab_bokeh
参考:https://github.com/jupyterlab/jupyterlab/issues/4408#issuecomment-382370962
为文件添加目录。
jupyter labextension install @jupyterlab/toc
本文介绍如何在Linux与Windows间通过简单操作实现剪贴板共享,分享了tmux配置技巧以提升多任务处理效率,包括窗口和会话管理的快捷键设置。同时,提供了JupyterLab的扩展安装指南,涵盖控件交互、文件目录添加等功能,助力科研人员和数据分析师提高工作效率。

被折叠的 条评论
为什么被折叠?



