abhishekkrthakur / colabcode

Run VSCode (codeserver) on Google Colab or Kaggle Notebooks
MIT License
2.06k stars 275 forks source link

Add Code Server parameters #67

Open rcmalli opened 3 years ago

rcmalli commented 3 years ago

This update allows users to set their paths for code-server configuration to keep their extension and user settings stored in custom folders (preferably in a Google Drive folder). Each time connection is restarted, all the configuration will be loaded back.

#Example Usage
ColabCode(
        port=10000,
        password="pass",
        mount_drive=True,
        user_data_dir="MyDrivePath/user_data",
        extensions_dir="MyDrivePath/extensions",
        config="MyDrivePath/config.yaml",
    )
christiancosgrove commented 2 years ago

This is a great feature, @abhishekkrthakur can we approve it?