Live coding 3

You can try to put the referral code in the above URL ( lg6rnx ) in your paperspace billing tab’s “Promo Code” field, it’s worth a try.

2 Likes

When the symlink to a folder was created, shouldn’t we specify the destination symbolic link name at the end of this command? Or does it take the destination folder name as the symlink name?

ln -s /storage/.local

I think the default behaviour for this form is described in the GNU docs for ‘ln’ as follows:

  • If two file names are given, ln creates a link to the first file from the second.
  • If one target is given, ln creates a link to that file in the current directory.
3 Likes

Thanks, @mike.moloch for sharing that.

1 Like

I created a fork version of the fastbook in my git (GitHub - ssarawgi/fastbook: The fastai book, published as Jupyter Notebooks). When I create a notebook in Paperspace using this via the advanced options, I am somehow seeing mambaforge as the folder instead of the fastai python files.

Perhaps you have the issue mentioned at the top of this thread?:

Hi. I am new to Terminals (and most of this stuff).
How do I get Paperspace to upload the files from Ubuntu ? When I try to upload the .SSH files, I can only see my Windows10 file structure. In the video it looks like Jeremy is uploading the file from a separate Linux drive/folder ?
Thanks.

[Edit:] Whoops. Responding to Jeremy’s comment below (thx) it seems the text got lost trying to post during a power outage last night. This morning the post remained in edit and I hit send in a hurry while packing up for work.

@David.C, in Windows Explorer, does it show a Linux icon? This gives access to the SSH files on the linux file system to use for the JupiterLab upload.

Alternatively, the files contain text, so I often just use clipboard copy/paste to move keys around. You just need to ensure the permissions on the “id_rsa” file are 600. One way to ensure correct permissions is to first run ssh-keygen on Paperspace and then edit the files to copy/paste the keys from your local.

Alternative2, you can add multiple public keys to github (if that is what you are trying to access) so the new public key generated on Paperspace from ssh-keygen can be added to github to sit next to the public key from Windows. This is probably the “more correct” ssh keys were intended to be used, but has the overhead of in the future needing to manage/remember which keys come from where, so in practice many people just copy the same public-private keypair around.

btw, if you are new to SSH, this might interest you.

1 Like

Thanks @bencoman. Windows Explorer does not show a Linux icon as in the screenshot above or in the video. I was able to upload the files using the //wsl$ path and get everything working, but would be interested to understand why I am not seeing the Linux icon.

Thanks for the SSH video, that was very helpful.

1 Like

It might be that I’m on Windows 11 - being configured that way by default.
Searching just now I found an article describing how to add it , but I don’t remember needing to do that myself.

1 Like

Hello Everybody

I think, I messed up my pre-eun.sh file. The machine is not booting up.
Doubt is should I erase all the notebooks and start again?
Please help.

Create a new instance using the plain pytorch template. That doesn’t run pre-run.sh. Once it’s open, you can fix, rename, or delete pre-run.sh.

1 Like

For my paperspace in Jupyter Lab I get this message ? What should I do ? @Daniel
Screen Shot 2022-08-13 at 7.46.40 PM

In minute 43 of live coding3 Jeremy talked about terminal. My terminal in paperspace has base?
it mess up other stuff. I can not install fastcore properly. anyone confront this issue . @dkobran is this normal ? I can not also link or open ./local .

I had the same. What I did:

  • Run conda deactivate, this will remove (base) from command line
  • Now run pip install -U --user fastcore
2 Likes

I gain full access to Github without using SSH by using the Github’s personal access token.

To do this, enable the Advanced options when creating a new Paperspace notebook. Paste the personal remote repository URL of choice into the field Workspace URL. Fill out the Workspace Username field with the email address used for Github. Paste the Github’s personal access token into the Workspace Password field. See below for how to generate this token:

Note, I also linked my Github account in the Paperspace account settings.

2 Likes

I don’t know why but the documentation says you have to! I think the newer versions of mamba allow you to do ‘mamba activate tmp’.

1 Like

Thanks to Jeremy and everyone who participated, I followed along and it went well!

I also used Jeremy’s code to sign up for Paperspace and it was accepted.

Also if anyone has trouble adding a 2-factor authentication by barcode scanning it may be that you need to disable dark mode in Paperspace to scan the code with your android authenticator app (this happened to me).

2 Likes

Hello
at 43:39 Jeremy gets a list of folders after the ls /storage command but when i try i get nothing.
ls /storage -a shows me this . …
Also cd then ls => mamaforge

Thank you!

Jeremy says “there are already things in here because thats MY persistant storage”. The analogy is that your new Windows PC has an empty “Documents” folder, whereas your friend’s two year old computer has stuff in their “Documents” folder.

Note, cd on its own changes to your home directory. To clarify, try…

cd /storage
pwd
cd
pwd
echo $HOME

Keep working through the videos and you’ll flesh yours out.
Alternatively, much of the paperspace setup is summarised here:

3 Likes