Running a file from the extension. #16047
Replies: 4 comments 5 replies
-
Does it help? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply @krassowski.Based on the above I updated the code as follows:
But still not able to run the file. It just opens the file: |
Beta Was this translation helpful? Give feedback.
-
@krassowski I tried the above but it was not working. I came across this discussion If you can pls check this. Here is the code from that reference:
Don't why it's failing |
Beta Was this translation helpful? Give feedback.
-
@krassowski I got the issue. I was not waiting for the session context to be fully ready before trying to execute the notebook cells. Thanks a lot for the help. Really appreciate it. Closing the discussion. |
Beta Was this translation helpful? Give feedback.
-
I have built an extension to save a file and execute one now this section is somehow not running:
if(event.data.type === 'from-host-to-iframe-open-ipynb'){ const {filePath} = event.data contentsManager.open(filePath) fileRunManager.codeRunners.runAll }
Pls guide me where I am doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions