tillahoffmann / obsidian-jupyter

MIT License
438 stars 23 forks source link

Stuck on `running` #53

Closed dutry closed 1 year ago

dutry commented 2 years ago

Before raising an issue Have you installed all required dependencies? See the installation instructions for details.

Yes, and the run test shows test successful.

Describe the bug When I click run, it is always stuck on running, without any output.

Screenshots

Screen Shot 2022-10-05 at 11 27 22 AM

Console output Visit the jupyter plugin settings page and click the Run test button (available from version 0.2.0). Then copy and paste the output from the developer tools console here.

created new client for doc test-document using interpreter /Users/du/opt/anaconda3/bin/python
plugin:obsidian-jupyter:3146 INFO:obsidian-jupyter:started server for document test-document

plugin:obsidian-jupyter:3146 INFO:obsidian-jupyter:received request: {"id":"32e88402-630b-4892-a001-ca67efd65f3c","body":{"command":"execute","source":"1 + 1"}}

plugin:obsidian-jupyter:3146 INFO:traitlets:Executing notebook with kernel: 

plugin:obsidian-jupyter:3146 INFO:obsidian-jupyter:sent response: {"id": "32e88402-630b-4892-a001-ca67efd65f3c", "body": "<div class=\"cell border-box-sizing code_cell rendered\">\n<div class=\"input\">\n<div class=\"prompt input_prompt\">In&nbsp;[1]:</div>\n<div class=\"inner_cell\">\n    <div class=\"input_area\">\n<div class=\" highlight hl-ipython3\"><pre><span></span><span class=\"mi\">1</span> <span class=\"o\">+</span> <span class=\"mi\">1</span>\n</pre></div>\n\n    </div>\n</div>\n</div>\n\n<div class=\"output_wrapper\">\n<div class=\"output\">\n\n\n<div class=\"output_area\">\n\n    <div class=\"prompt output_prompt\">Out[1]:</div>\n\n\n\n\n<div class=\"output_text output_subarea output_execute_result\">\n<pre>2</pre>\n</div>\n\n</div>\n\n</div>\n</div>\n\n</div>\n \n\n"}

plugin:obsidian-jupyter:3135 received response {id: '32e88402-630b-4892-a001-ca67efd65f3c', body: '<div class="cell border-box-sizing code_cell rende…2</pre>\n</div>\n\n</div>\n\n</div>\n</div>\n\n</div>\n \n\n'}
plugin:obsidian-jupyter:3339 Received response <div class="cell border-box-sizing code_cell rendered">
<div class="input">
<div class="prompt input_prompt">In&nbsp;[1]:</div>
<div class="inner_cell">
    <div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="mi">1</span> <span class="o">+</span> <span class="mi">1</span>
</pre></div>

    </div>
</div>
</div>

<div class="output_wrapper">
<div class="output">

<div class="output_area">

    <div class="prompt output_prompt">Out[1]:</div>

<div class="output_text output_subarea output_execute_result">
<pre>2</pre>
</div>

</div>

</div>
</div>

</div>

plugin:obsidian-jupyter:3146 INFO:obsidian-jupyter:shutting down kernel...

plugin:obsidian-jupyter:3146 INFO:obsidian-jupyter:exiting...

Python dependencies Run pip freeze from the console. Then copy and paste the output here.

created new client for doc test-document using interpreter /Users/du/opt/anaconda3/bin/python
plugin:obsidian-jupyter:3146 INFO:obsidian-jupyter:started server for document test-document

plugin:obsidian-jupyter:3146 INFO:obsidian-jupyter:received request: {"id":"06b1514d-1d89-47ed-bd7d-16c1a6656150","body":{"command":"execute","source":"1 + 1"}}

plugin:obsidian-jupyter:3146 INFO:traitlets:Executing notebook with kernel: 

plugin:obsidian-jupyter:3146 INFO:obsidian-jupyter:sent response: {"id": "06b1514d-1d89-47ed-bd7d-16c1a6656150", "body": "<div class=\"cell border-box-sizing code_cell rendered\">\n<div class=\"input\">\n<div class=\"prompt input_prompt\">In&nbsp;[1]:</div>\n<div class=\"inner_cell\">\n    <div class=\"input_area\">\n<div class=\" highlight hl-ipython3\"><pre><span></span><span class=\"mi\">1</span> <span class=\"o\">+</span> <span class=\"mi\">1</span>\n</pre></div>\n\n    </div>\n</div>\n</div>\n\n<div class=\"output_wrapper\">\n<div class=\"output\">\n\n\n<div class=\"output_area\">\n\n    <div class=\"prompt output_prompt\">Out[1]:</div>\n\n\n\n\n<div class=\"output_text output_subarea output_execute_result\">\n<pre>2</pre>\n</div>\n\n</div>\n\n</div>\n</div>\n\n</div>\n \n\n"}

plugin:obsidian-jupyter:3135 received response {id: '06b1514d-1d89-47ed-bd7d-16c1a6656150', body: '<div class="cell border-box-sizing code_cell rende…2</pre>\n</div>\n\n</div>\n\n</div>\n</div>\n\n</div>\n \n\n'}
plugin:obsidian-jupyter:3339 Received response <div class="cell border-box-sizing code_cell rendered">
<div class="input">
<div class="prompt input_prompt">In&nbsp;[1]:</div>
<div class="inner_cell">
    <div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="mi">1</span> <span class="o">+</span> <span class="mi">1</span>
</pre></div>

    </div>
</div>
</div>

<div class="output_wrapper">
<div class="output">

<div class="output_area">

    <div class="prompt output_prompt">Out[1]:</div>

<div class="output_text output_subarea output_execute_result">
<pre>2</pre>
</div>

</div>

</div>
</div>

</div>

plugin:obsidian-jupyter:3146 INFO:obsidian-jupyter:shutting down kernel...

plugin:obsidian-jupyter:3146 INFO:obsidian-jupyter:exiting...
tillahoffmann commented 2 years ago

It looks like the YAML metadata in your document sets the interpreter path to the literal interpreter-path such that the plugin cannot find the python executable. Could you try rerunning the script without the YAML header?

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.