tkf / emacs-ipython-notebook

IPython notebook client in Emacs
tkf.github.com/emacs-ipython-notebook/
GNU General Public License v3.0
548 stars 51 forks source link

Problem with magic saved in ein when using nbconvert #157

Open ThibautPayen opened 9 years ago

ThibautPayen commented 9 years ago

Check list

When using the magic %%bash, ein seems to add some "metadata"

for example a cell with

""" %%bash

ls """

give when saved with the browser and ein respectively:

diff Scripts/Untitled0.ipynb Scripts/Untitled0_ein.ipynb 4c4

< "signature": "sha256:8518ebbbea6707df60d21925cd30c8a1a6c20c7adc5c831ae473fa6c2393a6d3"

"signature": "sha256:a21a29af999cb4a9ca7bacde309524670751c31d1bb026cd4adad87f32758e98" 20d19 < "metadata": {}, 23,24c22 < ],

< "metadata": {}

]

Steps to reproduce the problem

  1. Save a single cell with the magic %%bash
  2. Try to convert it with ipython nbconvert

    Expected output

A file that can be converted with nbconvert, which works with the browser but not with ein

Your EIN configuration (in .emacs.d/init.el or somewhere else)

Your IPython configuration

  1. What is your IPython version? (run ipython --version): 2.1.0
  2. How do you start IPython? (e.g., ipython notebook --port 9999): ipython notebook --script --pylab inline
  3. What is your IPython notebook port number or URL?: 8888

    Additional information (if any)

    System info:

("EIN system info"
 :emacs-version
 "GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7)
 of 2014-03-07 on lamiak, modified by Debian"
 :emacs-bzr-version nil
 :window-system x
 :emacs-variant nil
 :os
 (:uname
  "Linux 3.13.0-41-generic #70-Ubuntu SMP Tue Nov 25 14:40:34 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
"
  :lsb-release
  "No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.1 LTS
Release:    14.04
Codename:   trusty
")
 :image-types
 (svg imagemagick png gif tiff jpeg xpm xbm pbm postscript)
 :image-types-available
 (svg imagemagick png gif tiff jpeg xpm xbm pbm postscript)
 :request
 (:backend curl)
 :ein
 (:version "0.2.1alpha2.1178703-dirty"
       :source-dir "/home/foo/.emacs.d/el-get/ein/lisp/")
 :lib
 ((:name "websocket"
     :path "~/.emacs.d/el-get/websocket/websocket.elc"
     :featurep t
     :version-var websocket-version
     :version "1.3")
  (:name "request"
     :path "~/.emacs.d/el-get/request/request.elc"
     :featurep t
     :version-var request-version
     :version "0.2.0")
  (:name "auto-complete"
     :path "~/.emacs.d/el-get/auto-complete/auto-complete.elc"
     :featurep t
     :version-var nil
     :version nil)
  (:name "auto-complete"
     :path "~/.emacs.d/el-get/auto-complete/auto-complete.elc"
     :featurep t
     :version-var nil
     :version nil)
  (:name "popup"
     :path "~/.emacs.d/el-get/popup/popup.elc"
     :featurep t
     :version-var popup-version
     :version "0.5.0")
  (:name "fuzzy"
     :path "~/.emacs.d/el-get/fuzzy/fuzzy.elc"
     :featurep nil
     :version-var nil
     :version nil)
  (:name "python"
     :path "~/.emacs.d/el-get/python/python.elc"
     :featurep t
     :version-var nil
     :version nil)
  (:name "python-mode"
     :path "~/.emacs.d/el-get/python-mode/python-mode.el"
     :featurep nil
     :version-var nil
     :version nil)
  (:name "markdown-mode"
     :path "~/.emacs.d/el-get/markdown-mode/markdown-mode.elc"
     :featurep nil
     :version-var nil
     :version nil)))