Re: [BUG] org babel fails with matlab+python kernel on MacOS-10.15 [9.4.6 (release_9.4.6-541-g52b097 @ /Users/oub/emacs/site-lisp/packages/org/)]

2021-06-16 Thread Uwe Brauer
>>> "ND" == Nick Dokos  writes:

> Uwe Brauer  writes:
>> 
>>> |   ob-ipython--dump-error("Traceback (most recent call last):\n  File 
>>> \"/Users/...")
>> 
>> 
>> 
>>> This line seems to be the critical one in the error output. If you can
>>> expand out the full error message, it may elucidate what the problem is.
>> 
>> This message drives my crazy since the most important information is
>> just not shown.
>> 

> IIUC, clicking on the three dots should expand the message to its full
> glory. You'll probably need to cut-n-past it to another buffer and
> replace "\n" with "real" newlines to make it readable.

Thanks, I will try that out.


smime.p7s
Description: S/MIME cryptographic signature


Re: [BUG] org babel fails with matlab+python kernel on MacOS-10.15 [9.4.6 (release_9.4.6-541-g52b097 @ /Users/oub/emacs/site-lisp/packages/org/)]

2021-06-14 Thread Nick Dokos
Uwe Brauer  writes:

>
>>> |   ob-ipython--dump-error("Traceback (most recent call last):\n  File 
>>> \"/Users/...")
>
>
>
>> This line seems to be the critical one in the error output. If you can
>> expand out the full error message, it may elucidate what the problem is.
>
> This message drives my crazy since the most important information is
> just not shown.
>

IIUC, clicking on the three dots should expand the message to its full
glory. You'll probably need to cut-n-past it to another buffer and
replace "\n" with "real" newlines to make it readable.

-- 
Nick

"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler




Re: [BUG] org babel fails with matlab+python kernel on MacOS-10.15 [9.4.6 (release_9.4.6-541-g52b097 @ /Users/oub/emacs/site-lisp/packages/org/)]

2021-06-12 Thread Uwe Brauer
>>> "JK" == Jack Kamm  writes:

Hello Jack


> Hello Uwe,
> Uwe Brauer  writes:

Thanks for your quick reply.


>> (defalias 'org-babel-execute:matlab 'org-babel-execute:ipython)

> ob-ipython is not part of org-mode core, so I don't think this can be
> considered a bug here.

Ok, fair enough

> While the original ob-ipython is unmaintained, scimax [1] maintains a
> fork of it, so you could consider seeking help there.

Thanks for that information. I confess that I also send a report to the
ob-ipython author and he did not reply, no I understand why.

> Also, it looks like you're trying to use org-mode with a jupyter matlab
> kernel, so you may also consider ob-jupyter from the emacs-jupyter [2]
> project. I have had good success using it to run jupyter kernels from
> various languages before.

That is another useful link thanks.

> Also, I would suggest verifying that the jupyter matlab kernel works
> outside of Emacs/org-mode, to isolate where the problem is.

Right I wish I now how to check this

>> |   ob-ipython--dump-error("Traceback (most recent call last):\n  File 
>> \"/Users/...")



> This line seems to be the critical one in the error output. If you can
> expand out the full error message, it may elucidate what the problem is.

This message drives my crazy since the most important information is
just not shown.

In any case, please close the bug

Thanks

Uwe 

> [1] https://github.com/jkitchin/scimax
> [2] https://github.com/nnicandro/emacs-jupyter



smime.p7s
Description: S/MIME cryptographic signature


Re: [BUG] org babel fails with matlab+python kernel on MacOS-10.15 [9.4.6 (release_9.4.6-541-g52b097 @ /Users/oub/emacs/site-lisp/packages/org/)]

2021-06-12 Thread Jack Kamm
Hello Uwe,

Uwe Brauer  writes:

> (defalias 'org-babel-execute:matlab 'org-babel-execute:ipython)

ob-ipython is not part of org-mode core, so I don't think this can be
considered a bug here.

While the original ob-ipython is unmaintained, scimax [1] maintains a
fork of it, so you could consider seeking help there.

Also, it looks like you're trying to use org-mode with a jupyter matlab
kernel, so you may also consider ob-jupyter from the emacs-jupyter [2]
project. I have had good success using it to run jupyter kernels from
various languages before.

Also, I would suggest verifying that the jupyter matlab kernel works
outside of Emacs/org-mode, to isolate where the problem is.

> |   ob-ipython--dump-error("Traceback (most recent call last):\n  File 
> \"/Users/...")

This line seems to be the critical one in the error output. If you can
expand out the full error message, it may elucidate what the problem is.

[1] https://github.com/jkitchin/scimax
[2] https://github.com/nnicandro/emacs-jupyter