Download Compressed Folder from Jupyter Notebook in GCloud Deep Learning VM - google-cloud-platform

This seems to be a very simple question, but I couldn't find a way to do it. The jyputer notebook has the option to download file one by one. But my training process generates too many files, and I want to download them all at once. Is there any way to do it?

Assuming it is JupyterLab what you are using:
Open a new Launcher (+ icon) and start a new terminal session.
Use zip -r FILE_NAME.zip PATH/TO/OUTPUT/FOLDER/ to compress the required folder.
Download the zip file as you were doing with the other ones.

Related

Download zip file on google drive

I want to create a MERN stack application from where I can auth to google drive, upload files and download zip folders. But I want to upload files in unzip format and when I want to download folder from google drive I want similar behaviors as google drive does i.e: It first zip the folder and the download it.
I checked it's documentation various npm modules but I am not able found and figure out how to do it.
Any one can help me in this

GCP Instance: Ipython Notebook Download to local system

Hi I want to download my ipython notebook which I created using the Ubuntu machine
on GCP?
Can anyone suggest any method to do so?
There is an option to download your .ipynb files. Follow the following steps:
Go to File -> Download as -> select the format you want the download.
If this doesn't answer your question kindly let me know.

How to view contents of a PCF .droplet file in Windows?

Problem
The question pretty much says it all. I used the plugin: "cf local" to get the .droplet file for my app in PCF. However, I have no idea how to expand or view the contents of the file.
What I tried
I tried adding a .zip at the end, but that did not work.
I tried viewing in NotePad, but that did not work.
Notes
We are using a Diego back-end which prevents us from using "cf files".
It shouldn't matter but we are deploying a .NET application
Related: Is it possible to download all files of an application in Cloud Foundry?
It's a gziped tar archive. Try adding a .tgz or .tar.gz extension. You may need a third party archive tool, I don't know if Windows will open that file by default. 7zip or something comparable should open it.
Daniel was on the right track, however I wanted to post exactly what I used as an alternative to an extraction utility.
I found that the easiest way is to use bash, within Windows. When we installed Github desktop there was an option to use bash and most of us, in my area, have done this.
If you have already installed it then: Goto Preferences an choose your Git-Shell. Under default Shell you can choose between: CMD, Git Bash, Powershell or Custom.
Once that is in place you can navigate to the folder where the .droplet file lives and execute the following command:
tar -xvzf app-name.droplet
This will extract the contents into a folder called "app" in the current directory which has the contents of your asset that would be in PCF.

Is there a way to open and modify a python file in a virtual machine of google cloud platform?

I just started to use cloud to do training for my deep learning program. For now every time I modified my local .py file I have to remove the old one in the remote virtual machine of Google Cloud Platform and upload the new one. I am just curious if there is a way that I can actually open the .py file in the remote visual machine through the command line? That would be very high efficiency.
Thank you very much!
To edit a file on a machine you can SSH into there are many potential solutions.
Use scp to copy files. E.g. scp mylocalfile ssh://my-host-address/myfolder
Use ssh mounting solutions: How do you edit files over SSH?
Edit using nano your-file-to-edit (my favorite) https://www.howtogeek.com/howto/42980/the-beginners-guide-to-nano-the-linux-command-line-text-editor/
Edit using vi or vim http://vim.wikia.com/wiki/Tutorial

Django hosting on pythonanywhere.com/

How can I upload my finished django local project to pythonanywhere.com? Is there any option or I should to do file by file?
I have right now something like this My Django website on pythonanywhere
but I don't see there how to upload my finished project :(
I uploaded a zip file but how to unzip it by bash console?
To unzip the file from a bash console, just start one from the "Consoles" tab and then run unzip filename.zip.
from here:
Getting code and content in and out is easy — you can use our built-in
browser-based editor and Bash consoles, scp, or you can use git,
mercurial and other VCS's to push and pull your code. You can even
sync up via Dropbox.
update
The Dropbox feature is not available anymore, and see first comment below