Skip to content

Commit

Permalink
Added Workspace tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
hariesramdhani committed Jul 16, 2024
1 parent 2471fc3 commit bf18d2c
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/working-with-hpc/frequenty-asked-questions.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,9 @@ $ beegfs-ctl --getquota --cfgFile=/etc/beegfs/beegfs-client-uoa-scratch.conf --u
r04mr23|193544|| 2.52 TiB| 1024.00 GiB|| 1002345| 1000000
```

Again change r04mr23 with your Maxwell username, `size` `used` is your usage, `size` `hard` is the non-official storage limit, try to keep it below `hard` as suggested by the Maxwell team. `chunk files` is the file number limit.
Again change r04mr23 with your Maxwell username, `size` `used` is your usage, `size` `hard` is the non-official storage limit, try to keep it below `hard` as suggested by the Maxwell team. `chunk files` is the file number limit.

## How do I check how long did it take for my slurm job to finish?
```
sacct --format=JobID,JobName,State,Elapsed -j <JOB_ID>
```
Binary file added docs/working-with-hpc/img/06_01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/working-with-hpc/img/06_02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions docs/working-with-hpc/workspaces.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: Workspaces
label: Workspaces
sidebar_position: 95
---

![Haries' directory](img/06_01.png)

Six months in and you already have multiple folders containing hundreds or even thousand files. Loading all of the folders and files using VSCode remote may take a while now and moving between folders and files might not be as easy as when you have 3 folders. Well, technically for the first problem you can just select one specific folder to work with when you're using VS Code remote, but what if you want to use multiple folders from different parent directory without having to change VS Code windows? Fret not because VS Code have this cool feature called Workspace. It's very straightforward to use Workspace in VS Code.

To start with create a new file called `myworkspace.code-workspace` anywhere on the sharedscratch/home directory. Everything that ends with `.code-workspace` will be interpreted as Workspace by VS Code. The file needs to contain the workspace information in `.json` format. Mainly you will only need to fill the "folders" key with the path of the directory that you want to include in your workspace. For example in my case I want to have both of the folders below in my workspace.

```json
{
"folders": [
{
"path": "/Users/r04mr23/Documents/phd/trial/benCCChmarker",
"name": "benccchmarker (LOCAL TEST FOLDER)"
},
{
"path": "/Users/r04mr23/Documents/phd/morgan_lab/benccchmarker",
"name": "benccchmarker (MAIN DEV FOLDER)"
}
],
"settings": {}
}
```

Double clicking the file will automatically open the workspace
![Workspace](img/06_02.png)

There are many keys/parameters that you can put to your `.code-workspace` but right now the above keys should suffice. To learn more about this keys you can refer to the [official page](https://code.visualstudio.com/docs/editor/workspaces).

0 comments on commit bf18d2c

Please sign in to comment.