Have you ever wondered what to do with your iPad now that you have a desktop? It is a waste not to utilize your iPad to the fullest extent.
To code on the iPad, we can use VsCode! VSCode is unavailable on the iPad, but we can start a VSCode server from the desktop and connect our iPad to it. This also saves you headaches by avoiding setting up SSH!
VSCode uses a technique called tunnel to create a tunnel for your client devices to connect to using Github to authenticate.
You can also start the server from the command line using SSH. Install the command line after you SSH to the desktop.
sudo snap install code --classic
This will create a command line code
on your SSH server. Be sure also to install the extensions for the tunnel following the guide: https://code.visualstudio.com/docs/remote/ssh.
Run code tunnel
, I suggest running this on your Desktop computer to save the hassle of setting up the GitHub credential. Remember to run ssh username@localhost
first into your Windows WSL subsystem before running code tunnel
if you want the VSCode server to connect to your WSL system. Otherwise, use Ctrl+Shift+P and type in “Turn on Remote Tunnel Access…” to run the server on the Windows system. Then, follow the link to set up the Github API key the first time you run the code.
After the setup, the command line will output the link https://vscode.dev/tunnel/<machine_name>/<folder_name> for you to access. You can type this link into your iPad browser and log into your GitHub account.
Now, you can start coding! Be sure to also install the Jupyter notebook extension in the VsCode! And now you can run your favourite Jupyter notebook code within your iPad remotely :).