-
Notifications
You must be signed in to change notification settings - Fork 104
Executable python files and --jobs command line argument #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ul when they are memory intensive or when using a shared cluster)
I will put both of these in v0.13 final. In terms of the other suggestions, I agree with both. I started working on ways to allow per-session options last summer, and will see if I can get that operational by this coming summer. I want to allow There are two ways per-session options could be managed. One would be to enter them after the session name, in any chunk of code belonging to a given session. Something like this: Another option would be to have a command. Something like this: Any thoughts on the syntax for per-session options? Also, there's a bit of a tangent discussion on the future of PythonTeX in #34 (comment), and I'd be interested in any thoughts you have on that. |
|
The naming --jobs is from make, I am guessing that is where SCons got it from parallel https://www.gnu.org/software/parallel/man.html#options allows for "--max-procs N" and "-P N" in addition to "-j" and "--jobs", we could consider the same. I think the second one is the most realistic, the feature would be so obscure that the extra typing would not be a problem. The problem with the first one is how to handle this: If we where talking only python we might be able to handle the above case gracefully, but it would not be worth it. When it comes to another markdown language, I don't really think the world needs another markdown language (are there not enough?). A hook into say sphinx would in my mind be more useful. I am thinking something like pngmath, but allowing arbitrary latex code (pycode included) to be brought in as an image or rendered in some other way. Note that matplotlib already have hooks for including generated plots and code (http://matplotlib.org/sampledoc/extensions.html). But feel free to go for it! |
|
I've run into a complication with the permissions. Permissions get changed any time I transfer files between Windows and Ubuntu. So trying to set permissions in the commits may not be practical. As an alternative, how about having the installer |
|
The installer already does chmod 755 as far as I can see. I changed the permissions so that I could easily run the scripts without installing, in addition, the installer script itself should be executable. But if this causes problems, then forget about it. |
|
The installer doesn't |
…un directly, reasonable defaults are automatically set for interpreter; starting prep for Matlab and Octave support
|
Just a small detail: In regards to the poor support for classes in octave, do you really need a class? We could use a struct and some functions? Octave seems to be more lenient in allowing functions to be defined as part of a script instead of in a separate file. |
|
I'll fix the For Octave, I'm happy to stick with a struct and some functions. After looking at this, this, and similar sources, it looks like it isn't possible to do what I would want even with a class. Apparently, methods are called like normal functions, with the object as the first argument. It should be possible to create something just as good only using functions defined in the template, which would be a lot simpler in terms of the number of files involved. I have the dependencies and created files tracking mostly working using this approach. |
…te (#36); fixed bug in tracking created files
Some options on the latex side should also be considered, a few cases: