Can we use NumPy in writing a website? [closed] - python

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
If I write code with NumPy, can a webserver which run Python 2.5 run the code?
Can we use NumPy as a dynamic language in writing websites of computational nature?

Yes of course you can.
If you wanted to use straight Python to serve up your HTML pages etc you should look at something like Django (a fully featured Python web framework) and Flask (a much lighter framework with less implemented features).
As all of these are Python you can install them alongside Numpy in a virtualenv on your webserver and then just import numpy as you would normally in your code to perform the computational work.

Yes. Your web site will need to be able to run Python code in some way, but if you can import numpy then you can use it.

Related

How to explore a python file from commandline [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I have a python file with no argparse implementation in its __main__, yet, I'm interested in having a look at the functions and modules implemented in it from the commandline. I'm tempted to write a function to perform such exploration but I wanted to find out first whether this is already available.
EDIT 1: to make it more concrete, I'm interested in names of functions and classes + their docs.
You may be looking for a tool like python-fire.
From the repository:
Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object. [...] Python Fire helps with exploring existing code or turning other people's code into a CLI.
It is available as a package on pip.

Using Python to access DirectShow to create and use Virtual Camera(Software Only Camera) [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
This post was edited and submitted for review 1 year ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
Generally to create a Virtual Camera we need to create a C++ application and include DirectShow API to achieve this. But with the modules such as
win32 modules and other modules we can use win32 api which lets us use these apis in python.
Can anyone Help sharing a good documentation or some Sample codes for doing this?
There is no reliable way to emulate a webcam on Windows otherwise than supplying a driver. Many applications take simpler path with DirectShow, and emulate a webcam for a subset of DirectShow based applications (in particular, modern apps will be excluded since they don't use DirectShow), but even in this case you have to develop C++ camera enumation code and connect your python code with it.

Better way to distribute python command line applications [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to understand the difference between distributing a python application. The application should be used on both Windows and Mac OS platforms. I see there are two ways of doing it.
Either create a executable using py2exe / py2app etc
Distribute the application using pip.
I would like to understand the use-cases for both the solutions.
A few things. As Sam Chats mentioned, one possible use case for creating the executable is if you don't want to share your source code, while if you distribute the application using pip, you will be able to. Additionally, if you distribute using pip vs. creating an application, more users may be able to easily access your application. As an example, check out this StackOverflow answer as a reason for using pip over Anaconda

Export Python script [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm using Blender and Python and want to give the .py file to other users to use my script... My script uses external modules (like NumPy) which will rise the errors (like can't find module xxxx).
Not all people can install NumPy (or even Python :D) as many Blender users are just artists.
Another note is that NumPy doesn't work with Blender (I install it in the system's Python, then delete Blender Python so it relies on the system Python).
If you want to distribute your code with external dependencies then you should build a Python egg. The .egg format was created to solve the issue you are dealing with. It is a self-contained release of your code with dependencies and meta-data. Here is some information on how create Python eggs.

Modifying an open source python program [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have an open source project written in python , it has some Forms and I want to modify a few things in the code and in the forms but it is my first time with python and I don't know what IDE to use and how to start ..my basic question is can I deal with forms in python like c#, java ...etc ? and how should I start ?
Because this project uses pyGTK, you can use glade which is a gtk forms designer, but it would probably add an extra layer of complexity that's really not necessary. Since you're already familiar with C#/Java, I'd recommend running through the official Python tutorial. Then I'd take a look at this excellent PyGTK tutorial. If you spend about a day really trying to understand the Python model and the "pythonic" way of doing things, you should then be able to easily modify that program.
While you probably don't need to use and IDE for a project this simple, if you want, you can use Eclipse (which you may be familiar with coming from Java) with PyDev. It allows you to write/debug Python programs inside the what may be the familiar Eclipse IDE.

Categories

Resources