Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
If I were to write a macro in python for libreoffice calc and save the file as an xlsx file will the macro work in ms excel on a windows pc?
I am thinking of learning python so I can write macros for ms excel in python on libreoffice.
No, Excel only natively supports macros written in VBA.[1]
Sort of.
You won't be able to directly use python macros from libreoffice, but you can use python to automate MS office
See here: Using Python to program MS Office macros?
I've used the win32Com method, and it did everything i needed. I don't think there's much benefit of doing things this way unless you're using some of the power of python for other interactions.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
Just like the title says, I would like to turn on my raspberry pi and have it automatically open a terminal and that terminal would automatically start a python script. Preferably in a way where I can run 4 different terminals each running a different .py file.
I have done the rc.local approach but the programs do not open in a terminal and that is essential for the functionality of the code.
Any suggestions?
Edit the file found here:
/etc/xdg/lxsession/LXDE/autostart
add your commands to it
#python PathToScript/script.py
Edit: I realize you want the terminal open. I believe this will work
#lxterminal --command "python pathToScript/script.py"
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
So I was thinking it would be awfully convenient to have a Python interpreter DLL, and to what I know, the interpreter is a DLL, but I don't know how to use it/if it can be used that way.
I want to execute python files from Gamemaker Studio through a DLL, (Python 2.7, preferably.) and if I knew the functions of the DLL, I could make the proper GML scripts to do it.
Any help is greatly appreciated.
It is called embedding the Python interpreter. Read the section on extending and embedding the Python interpreter of the Python documentation.
You might consider some other interpreter, in particular Lua, which is free software, widely used in games, and rumored to be faster, or GUILE (also faster, and with a much more powerful and expressive language, Scheme; read also SICP)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I came across this while trying to use a Python script that used ~Email to refer to the email column of a csv. When entering just ~email / ~Email into a prompt, it returns
host is down: /Network/Servers/my.server.domain/Volumes/files/teachers/Group
This happens in bash, zsh, iterm, terminal, and on other computers bound to our server. These other computers have no aliases or command line utilities set up. Can someone explain this to me and how I can disable it to be able to use this script?
OS 10.9.5
It's the home directory of an account named email. You can avoid this shell home directory-substitution by escaping the ~ (\~email) or single-quoting the string ('~email').
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
We are having difficulty installing our Python distribution in a way that will allow multiple users of the same computer to program in Python.
We switched the computers in our lab over to active directory with a mandatory profile. The problem is that Enthought Canopy puts several hundred MB of material in the profile itself. This makes it incredibly slow when a new user logs on. Can I get Canopy to install somewhere else, like a "normal" program?
Any help would be much appreciated, and I apologize if there is some obvious answer I am missing.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I need a python library that could read and write Excel files with all formats (i.e xls and xlsx).
I'm new to python and I was using Java before. In Java I was using POI library and it was perfect. I need a python library with the same functionality if possible.
I know this thread hasn't been active in a while, but I thought it would be nice to add an answer here since I made a new solution to this problem.
I had this same issue so I went ahead and created a small library that includes python-excel (xlrd, xlwt) and openpyxl within it. You can find it here: https://github.com/camyoung1234/spreadsheet
Then to use it you type the exact same code as openpyxl, except you replace openpyxl with spreadsheet. When you load and save files it looks at the extension and determines which library to use for handling it.
To install it just download it, extract it, rename the folder spreadsheet-master to spreadsheet and place it in PythonXX/Lib/site-packages/ (I've only tested with Python 2.7 but it should work with others)
The README has a few examples to help you get started.
Python excel looks like a go: http://www.python-excel.org/
Also OpenPyXl may have the features you need: http://packages.python.org/openpyxl/