- Google Cloud SDK
- macOS 64-bit (x86_64) reccommended
- Project ID from Project with running VM
- VPN Instance Name and Zone
- SSH Key for project
- `ssh-keygen -f ~/.ssh/
- ip address of running project
- Install jupyter:
$ pip3 install jupyter
- launch a Jupyter notebook server that is available over the local network:
$ jupyter-notebook --ip=$(hostname -I) --no-browser
$ jupyter-notebook --ip=$(hostname -I) --no-browser
[I 05:51:34.280 NotebookApp] Serving notebooks from local directory: /home/pi
[I 05:51:34.280 NotebookApp] Jupyter Notebook 6.1.5 is running at:
@bpteague Has an excellent update solution as of February 2025 using modern tools and an updated workflow.
This gist will remain here, but is deprecated. I'll keep it here historical and link-preservation purposes only. I strongly encourage everyone to check out the solution above!
- Create a developer account with Apple
- https://developer.apple.com and shell out $99 for a developer account
- Download and install X-Code from the Apple App Store
From scratch:
Remove homebrew from Catalina-Mojave:
https://osxdaily.com/2018/08/12/how-uninstall-homebrew-mac/
```
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
Forward ports across multiple hosts to provide access to a remote machine
Configuration [remote] --ssh--> [DMZ Host] --ssh--> [host on LAN]
This will map port localhost:8888 on the remote machine port 8888 on the DMZ host; then port 8888 on the DMZ host to port 8888 on the LAN host:
$ ssh -t -p 22 -l user_dmz host_dmz.com -L 8888:localhost:8888 ssh -t -p 22 -l pi lan_host.local -L 8888:localhost:8888
Install PyInstaller within the pipenv - this appears to resolve some path searching issues
PyInstaller 2018 Version has issues with virtual environments and specifically with venv 16.7.9 (used by pipenv). This may be resovled by the 9 Jan 2020 Version. The develop branch appears to solve the issue:
pipenv install -e git+https://github.com/pyinstaller/pyinstaller.git@develop#egg=PyInstaller
Key/Command | Description |
---|---|
Tab | Auto-complete files and folder names |
Ctrl + A | Go to the beginning of the line you are currently typing on |
Ctrl + E | Go to the end of the line you are currently typing on |
Ctrl + U | Clear the line before the cursor |
Ctrl + K | Clear the line after the cursor |
Ctrl + W | Delete the word before the cursor |
Ctrl + T | Swap the last two characters before the cursor |
# |