Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
ESAP GUI
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON SDC
ESCAPE WP5
ESAP GUI
Commits
3dd7f190
Commit
3dd7f190
authored
4 years ago
by
Zheng Meyer
Browse files
Options
Downloads
Patches
Plain Diff
added notebooks from various ESFRIs and DIRAC EGI
parent
92fa401f
No related branches found
No related tags found
1 merge request
!8
Esap gui dev
Pipeline
#6509
passed
4 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/Interactive.js
+43
-6
43 additions, 6 deletions
src/components/Interactive.js
src/contexts/IDAContext.js
+6
-0
6 additions, 0 deletions
src/contexts/IDAContext.js
with
49 additions
and
6 deletions
src/components/Interactive.js
+
43
−
6
View file @
3dd7f190
import
React
,
{
useContext
}
from
"
react
"
;
import
{
Button
,
Form
,
Container
}
from
"
react-bootstrap
"
;
import
{
Button
,
Form
,
Container
,
Alert
}
from
"
react-bootstrap
"
;
import
{
IDAContext
}
from
"
../contexts/IDAContext
"
;
export
default
function
Interactive
()
{
const
{
jhubURL
,
setJhubURL
}
=
useContext
(
IDAContext
);
const
{
jhubURL
,
setJhubURL
,
jnotebookURL
,
setJnotebookURL
,
batchsystemsURL
,
setBatchsystemsURL
}
=
useContext
(
IDAContext
);
let
list_of_jnotebooks
=
[
{
"
name
"
:
"
CSIC-IAA HCG-16 workflow
"
,
"
url
"
:
"
https://mybinder.org/v2/gh/AMIGA-IAA/hcg-16/master
"
},
{
"
name
"
:
"
CDS MOCPy
"
,
"
url
"
:
"
https://mybinder.org/v2/gh/cds-astro/mocpy/master
"
},
{
"
name
"
:
"
JIVE Jupyter CASA
"
,
"
url
"
:
"
https://mybinder.org/v2/gh/aardk/jupyter-casa/master
"
},
{
"
name
"
:
"
ASTRON VO Apertif
"
,
"
url
"
:
"
https://mybinder.org/v2/gh/zhengmeyer/first-binder.git/master
"
},]
let
list_of_jhubs
=
[
{
"
name
"
:
"
SKAO JupyterHub
"
,
"
url
"
:
"
https://srcdev.skatelescope.org/escape
"
},
{
"
name
"
:
"
ASTRON JupyterHub
"
,
"
url
"
:
"
https://sdc.astron.nl/hub/
"
},
{
"
name
"
:
"
IFAE-PIC JupyterHub
"
,
"
url
"
:
"
https://jupyter.pic.es
"
},]
let
list_of_batchsystems
=
[
{
"
name
"
:
"
DIRAC EGI
"
,
"
url
"
:
"
https://dirac.egi.eu
"
},
]
return
(
<
Container
fluid
>
<
Form
className
=
"
mt-3
"
>
<
Form
className
=
"
mt-5
"
>
<
Form
.
Group
controlId
=
"
jnotebook
"
onChange
=
{
(
event
)
=>
setJnotebookURL
(
list_of_jnotebooks
.
find
((
item
)
=>
item
.
name
===
event
.
target
.
value
).
url
)
}
>
<
Form
.
Label
>
<
h3
>
Run
ESCAPE
ESFRI
Jupyter
Notebooks
<
/h3
>
<
/Form.Label
>
<
Form
.
Control
className
=
"
mt-1
"
as
=
"
select
"
>
{
list_of_jnotebooks
.
map
((
option
)
=>
<
option
>
{
option
.
name
}
<
/option>
)
}
<
/Form.Control
>
<
/Form.Group
>
<
Button
href
=
{
jnotebookURL
}
target
=
"
_blank
"
>
Run
selected
notebook
<
/Button
>
<
/Form
>
<
Form
className
=
"
mt-5
"
>
<
Form
.
Group
controlId
=
"
jhub
"
onChange
=
{
(
event
)
=>
setJhubURL
(
list_of_jhubs
.
find
((
item
)
=>
item
.
name
===
event
.
target
.
value
).
url
)
}
>
<
Form
.
Label
>
Select
JupyterHub
Services
<
/Form.Label
>
<
Form
.
Control
className
=
"
mt-3
"
as
=
"
select
"
>
<
Form
.
Label
>
<
h3
>
Select
ESCAPE
JupyterHub
Services
<
/h3
>
<
/Form.Label
>
<
Form
.
Control
className
=
"
mt-1
"
as
=
"
select
"
>
{
list_of_jhubs
.
map
((
option
)
=>
<
option
>
{
option
.
name
}
<
/option>
)
}
<
/Form.Control
>
<
/Form.Group
>
<
Button
href
=
{
jhubURL
}
target
=
"
_blank
"
>
Launch
<
/Button
>
<
Button
href
=
{
jhubURL
}
target
=
"
_blank
"
>
Launch
JupyterHub
<
/Button
>
<
/Form
>
<
Form
className
=
"
mt-5
"
>
<
Form
.
Group
controlId
=
"
batchsystems
"
onChange
=
{
(
event
)
=>
setBatchsystemsURL
(
list_of_batchsystems
.
find
((
item
)
=>
item
.
name
===
event
.
target
.
value
).
url
)
}
>
<
Form
.
Label
>
<
h3
>
Select
HPC
/
HTC
Services
<
/h3
>
<
/Form.Label
>
<
Form
.
Control
className
=
"
mt-1
"
as
=
"
select
"
>
{
list_of_batchsystems
.
map
((
option
)
=>
<
option
>
{
option
.
name
}
<
/option>
)
}
<
/Form.Control
>
<
/Form.Group
>
<
Button
href
=
{
batchsystemsURL
}
target
=
"
_blank
"
>
Start
HPC
/
HTC
service
<
/Button
>
<
/Form
>
<
/Container
>
);
...
...
This diff is collapsed.
Click to expand it.
src/contexts/IDAContext.js
+
6
−
0
View file @
3dd7f190
...
...
@@ -3,11 +3,17 @@ import React, { useState, createContext } from 'react';
export
const
IDAContext
=
createContext
();
export
function
IDAContextProvider
({
children
})
{
const
[
jhubURL
,
setJhubURL
]
=
useState
(
"
https://srcdev.skatelescope.org/escape
"
);
const
[
jnotebookURL
,
setJnotebookURL
]
=
useState
(
"
https://mybinder.org/v2/gh/AMIGA-IAA/hcg-16/master
"
);
const
[
batchsystemsURL
,
setBatchsystemsURL
]
=
useState
(
"
https://dirac.egi.eu
"
);
return
(
<
IDAContext
.
Provider
value
=
{{
jhubURL
,
setJhubURL
,
jnotebookURL
,
setJnotebookURL
,
batchsystemsURL
,
setBatchsystemsURL
,
}}
>
{
children
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment