<jupyter_start><jupyter_text>Welcome to the code-server notebook!This code-server notebook will allow you to have the [Visual Studio Code](https://code.visualstudio.com) experience for your notebook.   Sarting  code-serverFirst run the code block below:<jupyter_code>!curl -fsSL https://code-server.dev/install.sh | sh
!wget -qO cloudflared.deb https://bin.equinox.io/c/VdrWdbjqyF/cloudflared-stable-linux-amd64.deb
!sudo dpkg -i cloudflared.deb && rm -rf cloudflared.deb<jupyter_output><empty_output><jupyter_text>After the code blcok above has ran, run this to get your tunnel URL.<jupyter_code># Change the password to be something else! You can enter any password you like.
!PASSWORD="<PASSWORD>" code-server --host 0.0.0.0 --port 6006 --auth=password & cloudflared tunnel --url http://localhost:6006<jupyter_output><empty_output><jupyter_text>FAQ  Q: Why have a Visual Studio Code inside Colaboratory?It's quite known that Visual Studio Code is very robust and most of the time Jupyter doesn't have that good experience when coding with Python in regards to third party libraries you might require. You may also need linting and code analysis as well which VS Code has support of thanks to the community extensions.   Q: How long would this run?According to Google, Notebooks are able to stay up for up to 12 hours. That's more than enough to get your code ready to transfer it to Jupyter after validating it works.Keep in mind to terminate the code cells above when you're no longer using the editor.  Q: Where's the Google Drive integration?You will have to run this so you can access your files over in Google Colaboratory.<jupyter_code>from google.colab import drive
drive.mount('/content/drive')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.07377521613832853, 'fraction_numerical': 0.009221902017291067, 'mean_word_length': 5.048780487804878, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '339919', 'license': 'CC0-1.0', 'n_tokens_mistral': 522, 'n_tokens_neox': 494, 'n_words': 219, 'path': 'vscode.ipynb', 'repo_name': 'sr229/vscode-jupyter', 'size': '1737'}