PRODUCTS AND SUPPORT


How to get Jupyter Python Notebook on Alibaba Cloud




This section describes how to launch and connect to Cloud IDE for Python using Jupyter & Visual Studio Code on Alibaba Cloud environment.


  1. Go to "Cloud IDE for Python using Jupyter & Visual Studio Code" offer listing on Alibaba Cloud Marketplace .

  2. /img/alibaba/desktop-linux/marketplace1.png


  3. Click on Choose Your Plan button.
  4. /img/alibaba/desktop-linux/ChooseYourPlan.png


    • You will be redirected to Basic Configurations Page.

      Select the Billing Method , Region and Zone where you want to launch the VM(such as Singapore , Zone A)
    • /img/alibaba/desktop-linux/BillingandRegion.png


    • Optionally change the number of cores and amount of memory.
    • /img/alibaba/desktop-linux/InstanceType.png


    • Optionally change the Sytem Disk and size.
    • /img/alibaba/desktop-linux/Storage.png


    • On Networking tab , Optionally change the VPC , Bandwidth Billing and Bandwidth Options.
    • Select the Security Group.Be sure that whichever Security Group you specify has ports 22 (for ssh), 80 (for http) and 3389 (for RDP) exposed.
    • /img/alibaba/python-ai-ml-kit/SG.png


    • On System Configurations tab , Select Logon Credentials as Password and enter the password.
    • /img/alibaba/desktop-linux/LogonCredentials.png


    • On Grouping tab , Optionally change the Resource Group and other settings.
    • Click Preview and Create Instance when you are done.

      Cloud IDE for Python using Jupyter & Visual Studio Code will begin deploying.

  5. To SSH the VM, first note the public IP address of the instance as highlighted below.

  6. /img/alibaba/python-ai-ml-kit/publicip.png

  7. Open putty , enter the public IP here and hit Open.

  8. /img/alibaba/desktop-linux/putty.png


  9. This will open SSH window. Login as root and enter the password set during the VM creation
  10. Now set the password for ubuntu user. Run below command to set the password for "ubuntu" user
  11. sudo passwd ubuntu

    /img/alibaba/desktop-linux/ssh-passwd.png

  12. Now the password for ubuntu user is set, you can connect to the VM's desktop environment from any local windows machine using RDP or linux machine using Remmina.
  13. To connect using RDP via Windows machine, first note the Public IP of the VM

  14. Then From your local windows machine, goto "start" menu , in the search box type and select "Remote desktop connection"

  15. In the "Remote Desktop connection" wizard, paste the Public IP and click connect

  16. /img/alibaba/desktop-linux/rdp.png

  17. This will connect you to the VM's desktop environment. Provide "ubuntu" as the userid and password set in above step 6 to authenticate. Click OK

  18. /img/alibaba/desktop-linux/rdp-login.png

  19. Now you are connected to out of box Cloud IDE for Python using Jupyter & Visual Studio Code environment via Windows machines.

  20. /img/alibaba/python-ai-ml-kit/rdp-desktop.png

  21. To connect using RDP via Linux machine, first note the external IP of the VM from VM details page,then from your local Linux machine, goto menu , in the search box type and select "Remmina".

    Note: If you don't have Remmina installed on your Linux machine, first Install Remmina as per your linux distribution.


  22. /img/gcp/common/remmina-search.png

  23. In the "Remmina Remote Desktop Client" wizard, select the RDP option from dropdown and paste the external ip and click enter.

  24. /img/gcp/common/remmina-external-ip.png

  25. This will connect you to the VM's desktop environment. Provide "ubuntu" as the userid and the password set in step 6 to authenticate. Click OK

  26. /img/gcp/common/remmina-rdp-login.png

  27. Now you are connected to out of box Cloud IDE for Python using Jupyter & Visual Studio Code environment via Linux machine.

  28. /img/alibaba/python-ai-ml-kit/rdp-desktop.png

  • You can use the remote desktop you connected in above step for using the VM, however, more convenient and better method is to use the Jupyter/Ipython notebook which comes with the VM .
    The Notebook is available on the same public IP you used for remote desktop and accessible via any browser. Just open the browser and type the public IP address (e.g http:// 35.232.87.128 ) and you will get below screen for login . Use “ubuntu” as username and the password you set in step 8 to login.
    Note : Make sure you use “http” and not “https” in the url

  • /img/gcp/gcp_pythonmachinelearning_notebook.png

    /img/gcp/gcp_pythonmachinelearning_jupyter_homepage.png