emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: strange output when executing matlab using babel, strange ,
Date: Fri, 31 May 2019 15:08:31 +0200	[thread overview]
Message-ID: <875zpqydo0.fsf@mat.ucm.es> (raw)



Hi 

I am running Ubuntu 16.06, matlab 2018b and  I am using the python
kernel to use matlab from within org mode


Thanks to John Kitchin, I have the following setting

* Lisp setting
#+BEGIN_SRC emacs-lisp
(setq org-confirm-babel-evaluate nil)   ;don't prompt me to confirm everytime I want to evaluate a block

;;; display/update images in the buffer after I evaluate
(add-hook 'org-babel-after-execute-hook 'org-display-inline-images 'append)
    

(add-to-list 'org-src-lang-modes '("matlab" . matlab))
(setq python-shell-interpreter "python3")

;; set default headers for convenience
(setq org-babel-default-header-args:matlab
      '((:results . "output replace")
	(:session . "matlab")
	(:kernel . "matlab")
	(:exports . "code")
	(:cache .   "no")
	(:noweb . "no")
	(:hlines . "no")
	(:tangle . "no")))

(defalias 'org-babel-execute:matlab 'org-babel-execute:ipython)
(defalias 'org-babel-prep-session:matlab 'org-babel-prep-session:ipython)
(defalias 'org-babel-matlab-initiate-session 'org-babel-ipython-initiate-session)
#+END_SRC


* The problem

When I run 

#+begin_src matlab :results output latex :exports results  :eval never-export 
disp('*Step 3:*')
disp('*Step 3:*  Calculate this')
#+end_src


On obtain 
#+RESULTS:
#+begin_export latex
,*Step 3:*
,*Step 3:*  Calculate this
#+end_export


Instead of 

#+begin_export latex
*Step 3:*
*Step 3:*  Calculate this
#+end_export


Does anybody have an idea what is wrong there?

Uwe Brauer 

             reply	other threads:[~2019-05-31 13:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-31 13:08 Uwe Brauer [this message]
2019-05-31 13:57 ` strange output when executing matlab using babel, strange , John Kitchin
2019-05-31 14:30   ` Uwe Brauer
2019-05-31 14:50 ` Nick Dokos
2019-05-31 14:56   ` Uwe Brauer
2019-05-31 15:59     ` John Kitchin
2019-05-31 16:46       ` Uwe Brauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875zpqydo0.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).