File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -49,16 +49,13 @@ async def kill(self, action: CmdKillAction) -> Observation:
49
49
50
50
async def run_ipython (self , action : IPythonRunCellAction ) -> Observation :
51
51
obs = self ._run_command (
52
- (' cat > /tmp/opendevin_jupyter_temp.py <<EOL\n ' f'{ action .code } \n ' 'EOL' ),
52
+ (" cat > /tmp/opendevin_jupyter_temp.py <<' EOL' \n " f'{ action .code } \n ' 'EOL' ),
53
53
background = False ,
54
54
)
55
55
56
56
# run the code
57
57
obs = self ._run_command (
58
- (
59
- 'export JUPYTER_PWD=$(pwd) && cat /tmp/opendevin_jupyter_temp.py | execute_cli'
60
- ),
61
- background = False ,
58
+ ('cat /tmp/opendevin_jupyter_temp.py | execute_cli' ), background = False
62
59
)
63
60
output = obs .content
64
61
if 'pip install' in action .code and 'Successfully installed' in output :
@@ -70,7 +67,7 @@ async def run_ipython(self, action: IPythonRunCellAction) -> Observation:
70
67
):
71
68
obs = self ._run_command (
72
69
(
73
- ' cat > /tmp/opendevin_jupyter_temp.py <<EOL\n '
70
+ " cat > /tmp/opendevin_jupyter_temp.py <<' EOL' \n "
74
71
f'{ restart_kernel } \n '
75
72
'EOL'
76
73
),
@@ -91,7 +88,7 @@ async def run_ipython(self, action: IPythonRunCellAction) -> Observation:
91
88
if action .kernel_init_code :
92
89
obs = self ._run_command (
93
90
(
94
- f' cat > /tmp/opendevin_jupyter_init.py <<EOL\n '
91
+ f" cat > /tmp/opendevin_jupyter_init.py <<' EOL' \n "
95
92
f'{ action .kernel_init_code } \n '
96
93
'EOL'
97
94
),
You can’t perform that action at this time.
0 commit comments