File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -166,14 +166,19 @@ def getFilesList(dir):
166166 concore_path = os .path .abspath (os .path .join (cur_path , '../../' ))
167167 dir_path = os .path .abspath (os .path .join (concore_path , dir ))
168168 res = []
169-
170- if (dir == 'concore' ):
171- res = os .listdir (concore_path )
172- else :
173- res = os .listdir (dir_path )
169+ res = os .listdir (dir_path )
174170 res2 = json .dumps (res )
175171 return res2
176172
177173
174+ @app .route ('/openJupyter/' , methods = ['POST' ])
175+ def openJupyter ():
176+ cur_path = os .getcwd ()
177+ concore_path = os .path .abspath (os .path .join (cur_path , '../../' ))
178+ p = call (["jupyter" , "lab" ], cwd = concore_path )
179+ return p
180+
181+
182+
178183if __name__ == "__main__" :
179184 app .run (host = "0.0.0.0" )
Original file line number Diff line number Diff line change @@ -64,10 +64,14 @@ def destroy():
6464 print (response .text )
6565
6666def getFilesList ():
67- import requests
6867 url = "http://127.0.0.1:5000/getFilesList/test"
6968 response = requests .request ("POST" , url )
70- print (response .text )
69+ print (response .text )
70+
71+ def openJupyter ():
72+ url = "http://127.0.0.1:5000/openJupyter"
73+ response = requests .request ("POST" , url )
74+ print (response .text )
7175
7276
7377# upload()
@@ -77,4 +81,5 @@ def getFilesList():
7781# debug()
7882# destroy()
7983getFilesList ()
84+ # openJupyter()
8085
Original file line number Diff line number Diff line change 683683#start running source in associated dirs (run and debug scripts)
684684if concoretype == "posix" :
685685 fdebug .write ('#!/bin/bash' + "\n " )
686+ frun .write ('#!/bin/bash' + "\n " )
687+
686688
687689i = 0
688690for node in nodes_dict :
826828 i = i + 1
827829fmaxtime .close ()
828830
831+ if concoretype == "posix" :
832+ funlock .write ('#!/bin/bash' + "\n " )
833+
829834i = 0 # 9/12/21
830835for node in nodes_dict :
831836 containername ,sourcecode = nodes_dict [node ].split (':' )
You can’t perform that action at this time.
0 commit comments