How to open "http://localhost:8081/" in google cloud? - google-cloud-platform

I started a new project in google could datalab. I closed the project, but now I want to re-open the project "http://localhost:8081/" and run my code. However, I don't know what I had done when I created the project. Procedures were so complicated and I don't know what steps I did until I created a project and run my python code. I would be thankful if someone can explain how it is possible to open the project in google cloud datalab.

When you created the Datalab instance, a new persistent disk was created as well to support it.
If you did not remove it, you can initialize a new instance with that persistent disk:
datalab create datalab-instance-name --disk-name datalab-persistent-disk
Please, see the relevant documentation.
You can look for the disk name in the Disks section of the Compute Engine console.

Related

Customised Google Cloudshell image does not launch

Customised Google Cloud Shell image fails to launch, error is 'Cloud Shell is experiencing some issues provisioning a VM to you. Please try again in a few minutes'. Repeated attempts to launch also fail.
I created a custom Google Cloudshell Image with an Ansible lab environment and setup tutorial. When this was tested approximately 10 days ago, it seemed to work as expected. Setup was performed using the following guide
Project is hosted with the 'Open in Google Cloud Shell' button here
For convenience, this is the launch button as a link
The customised Cloud Shell image is hosted at gcr.io/diveintoansible/diveintoansible-lab-gcp-cloudshell
I've checked the permissions and these appear to be open to the public as desired.
Any advice on resolving this, greatly appreciated.
This usually happens because the base image is out of date. If your image worked a few weeks ago, you probably just need to rebuild it.

Increase disk storage for google cloud shell?

I am trying to use Google Cloud Shell as my development platform as it's free and come with an intensive code editor. But at the same time, I struggle because only 5GB disk storage and only 2 projects loaded.
Is there an option to buy storage for cloud shell?
I know i have option to subscribe another VM inside GCP but it doesn't suit me, due to ain't any COOL IDE as i get in Cloud Shell. All i can deal with only vi.
No, You cannot increase the disk size of cloud storage. In fact if you do not use cloud shell for 120 days It will delete your home directory.
See more limitations here
Your second point is an insult to open source community :)
Here is an alternative I can think of:
Setup cloud SDK in your local system
Google Cloud Shell Editor is eclipse's Orion based text editor. You can use eclipse IDE , It will have same shortcut keys and code validation features.
Alternatively , You can use Orion in case you're doing web development
I hope this helped.
there is more disk storage on root folder that you can use it

Don't know how to load data to GCP notebook (Platform AI)

I am turning into GCP "Google cloud platform" to train a Keras model using google's powerful GPUs, for that I created an instance of VM on which I run a JupyterLab notebook.
I found my self unable to access my data that is stored as a bucket on google storage.
I found this small doc, under python, they define two function allowing to create and fill a dataset. my problem here is that I couldn't install the datalabeling_v1beta1 module.
I already tried the command below but had no result.
! gcloud components install datalab
I am new to GCP, so I really don't know much about the terminology, my goal for the moment is to uplaod my set of data to be able to use it as if I were on Google Colab or on my local machine.
Please refer to installing dependencies
Create a new notebook, File -> New -> Notebook
%pip install google-cloud-datalabeling
For Data labeling reference

Using Google Cloud Shell Editor on an instance

I am using the Beta version of Google's newer file browser along with the web based shell window to access my Google Cloud instance (https://cloud.google.com/shell/docs/features#code_editor).
I want to use the new file editor, when it initially loads it shows the files in my dev shell instances, when I boot up the actual instance I want to work in the files still show those from my persistent storage.
Can I get this window to show the files on the instance, so I can edit them on the fly?
As you can see in the screenshot below, files shown in the top left window do not match those in the active directory on the instance, can I tell the file browser to look at the instance?
No, unfortunately you cannot view/edit files on the remote instance to which you are connecting. Think of Google Cloud Shell as your workstation in the cloud and the web editor runs right on that workstation: when you connect to a remote machine you cannot see it's filesystem directly.
You could, however, install a web editor on your remote instance. Google Cloud Shell uses open-source Orion editor that's pre-installed on the Cloud Shell VM.
You can run vscode in your browser locally with connection to remote google cloud vm instance. Needs to download code-server and the repo supplies a binary version. After downloading, you caninstall it on the GCP vm instance and run vscode in your browser.
Hope this blog and video will also help.

How to load a snapshot in Jazz source control?

So Jazz source control lets you snapshot a repository workspace.
But how would I load a particular snapshot of a workspace on the command line? Doesn't seem like a lot of point to a snapshot if I can't load the project as it was at that point in time...?
ed... I have found a 'new... repository workspace from snapshot' in the RAD plugin... now to find how to do the same on the command line...
1) Take a look at scm help create workspace. You should see a --snapshot argument that will create a new workspace from the given snapshot.
2) See scm help load.
A snapshot is just a list of version identifiers. A repository workspace is what contains the content.
So you are actually asking two questions, which may help to clarify your search.
1) How do I create a new repository workspace from a snapshot via the command line
and
2) How do I load an existing repository workspace to my local filesystem via the command line
I would suggest asking your question on the http://jazz.net forums in the Rational Team Concert section. The development team is very responsive in answering questions and will be able to give you an answer that is accurate for the build that you are running.