Comments (7)
true enough. I thought I took the org-mode dir complely out, but I see that is not the case. I confirmed your error.
I put my org-mode and magit back into the repository. When I clone it and run emacs -q -l init.el, then it loads with no errors. hopefully it does for you too.
from jmax.
After installing aspell for Windows [1] and customizing the hostname check at the top of jmax.el, it is working great.
I hope you don't mind me using this channel to ask an additional question (I am a failure at email). In your pycse.org book, there's a code block under "** Defining functions in Python" which creates a matplotlib figure and then saves it as a png. In the org file, a link to the png file is embedded under a #+RESULTS:
banner.
My question is, did org-mode auto-generate this reference to the png file by somehow knowing what savefig
was calling the file, or did you manually add the link to the figure? I recognize that org-mode would have to be really smart to have done the former, but that's how the Sage and IPython browser-based notebooks work. But I don't think org-mode is doing this automatically because when I delete the results and the link to the image and evaluate the code block, the new results section is empty.
from jmax.
One small issue that might or might not be important: when I run emacs -q -l init.el
, M-x org-mode, and check the org-mode version number, emacs says, Org-mode version N/A-fixup (N/A-fixup !!check installation!! @
. This persists even after I run make
in the org-mode
subdirectory.
from jmax.
I had to write the [[./images/figure.png]] link. org-mode does not do that automatically. I agree, it would be great for that to automatically happen, but sometimes I save more than one figure in a code block. I don't know how you would do that automatically.
The hostname check is just there because I sync this directory on dropbox, and use it on many different windows/Linux computers.
from jmax.
Ok, I figured out what the org-version business was. the org-mode directory is under git vc from the org-repository, and it has a very large ignore file that made a lot of files not get committed to jmax. some of those did the version business. I think I added those, and now the version works the way it should I think. you will have to pull the new files in.
from jmax.
About org-mode: in my usual .emacs.d directory, which is also a git repo, I include org-mode's repo as a git submodule, that's worked pretty well for me.
About the image link: I tried adding print "\b\b\b[[./images/figure.png]]"
to the end of the code block, but of course it didn't fool emacs into thinking I had explicitly typed in those. There is I'm sure a good way to have the code block export a list of file names to the org file, I'll continue looking around.
from jmax.
It is possible to do this:
#+BEGIN_SRC python :results output org raw
print '[[./images/figure.png]]'
print '\n\n[[./images/figure.png]]'
#+END_SRC
#+RESULTS:
[[./images/figure.png]]
[[./images/figure.png]]
It does not always replace the output on multiple runs though.
from jmax.
Related Issues (20)
- Themes don't work as expected HOT 2
- Wrong type argument: stringp, nil after every python block execution HOT 2
- doi-utils-add-bibtex-entry-from-doi gives Wrong type argument: stringp, nil on Mac HOT 1
- Flyspell error on linux. HOT 8
- Install error HOT 8
- Language error when starting jmax on windows HOT 1
- cm-wdiff-git error HOT 4
- org-ref not automatically updating HOT 1
- Windows batch file unable to handle spaces in directory names
- Error with the most recent commit HOT 3
- Loss of syntax highlighting in org-mode upon update HOT 2
- comment-or-uncomment-region does not work in org-mode HOT 1
- prompts for updates twice HOT 3
- org-babel-async-execute creates temp files HOT 6
- Way to revertback from session behavior when executing python code? HOT 2
- overlay issue HOT 9
- melpa? HOT 2
- Problem with exporting to PDF HOT 2
- Any way to include superscript at beginning of word in org-mode (technical document) HOT 4
- org-show gives an error HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jmax.