在这篇短文中,我们记录了如何在使用 [Ubuntu][] 1804 LTS 操作系统的单台服务器上,建立用户隔离的 [JupyterLab][] Web 环境。
目标是:
- 操作系统的用户可以各自不受干扰的使用独立的 [JupyterLab][]
- 各个用户的 [Conda][] 环境可以自动的出现在 [JupyterLab][] 的
Kernel列表中
| # -*- coding: utf-8 -*- | |
| '''recorder.py | |
| Provides WAV recording functionality via two approaches: | |
| Blocking mode (record for a set duration): | |
| >>> rec = Recorder(channels=2) | |
| >>> with rec.open('blocking.wav', 'wb') as recfile: | |
| ... recfile.record(duration=5.0) | |
| Non-blocking mode (start and stop recording): |