Skip to main content

Home/ Python Programming/ Group items tagged with

Rss Feed Group items tagged

reckoner reckoner

Re: Python in Excel - 0 views

  • You can use Microsoft Script Control. If you have the win32 extensions of python, you can use python in place of vb in this control -open the VBA script editor - In menus/Tools/References add Microsoft Script Control -Make a new module and declare a new MsScriptControl.ScriptControl Global sc as new MsScriptControl.ScriptControl -Initialize the language attibute with python - Note that you and users of your document must have python and its win32 extensions installed. Activestate python distribustion include it. You can put sc.language="python" in the routine Workbook_Open() Now you can import python modules using ExecuteStatement method of the control in vba and have results from python functions with eval method. One interesting thing is that you can pass an object to the control with AddObject method and have python manipulate it. And so on..
  • Global sc As New MSScriptControl.ScriptControl Public Function os_getcwd() sc.Language = "python" sc.ExecuteStatement ("import os") os_getcwd = sc.Eval("os.getcwd()") End Function With this you can set your Excel formula to =os_getcwd() For me it returns "C:\Documents and Settings\Administrator\My Documents", which I needed to know at the time so I didn't have to screw around with the ever annoying pythonpath. You can put the first two lines of the function in the Workbook_Open hook, but I don't know where that is. I hope to use more Python in Excel soon. Hmm, actually, I suppose you can put those first two lines of the function after the Global declaration as well. I know just about zero VBScript and didn't get a chance to do anything else beyond proof of concept yet. I figured I would write something dynamic which allowed more transparent access to Python, maybe allowing formula like =py("os.getcwd()"), etc.
reckoner reckoner

Statistical Computing With Python - 0 views

  • StatPy: Statistical Computing with Python Welcome to StatPy, a collection of resources to help you do statistical computing with Python, with a special emphasis on astrostatistics (statistics in astronomy). This web site is brand-spanking-new, and still very much under construction; please be patient with our "dust" and check back again frequently as building continues.
enzojade62

Python Proficiency: Crafting a Digital Shopping Cart - 3 views

Are you ready to sharpen your Python programming skills with a practical and engaging assignment? In this blog post, we'll tackle the creation of a digital shopping cart, providing you with an oppo...

python programming developer pythonprogrammingassignmenthelp programmingassignmenthelp pythonassignmenthelp assignmenthelp education students university

started by enzojade62 on 16 Nov 23 no follow-up yet
reckoner reckoner

pyscripter - PyScripter Development Site - 0 views

  • PyScripter is a free and open-source Python Integrated Development Environment (IDE) created with the ambition to become competitive in functionality with commercial Windows-based IDEs available for other languages. Being built in a compiled language is rather snappier than some of the other Python IDEs and provides an extensive blend of features that make it a productive Python development environment. 
  •  
    PyScripter is a free and open-source Python Integrated Development Environment (IDE) created with the ambition to become competitive in functionality with commercial Windows-based IDEs available for other languages. Being built in a compiled language is r
reckoner reckoner

Psyco - Introduction - 0 views

  • In short: run your existing Python software much faster, with no change in your source. Think of Psyco as a kind of just-in-time (JIT) compiler, a little bit like what exists for other languages, that emit machine code on the fly instead of interpreting your Python program step by step. The difference with the traditional approach to JIT compilers is that Psyco writes several version of the same blocks (a block is a bit of a function), which are optimized by being specialized to some kinds of variables (a "kind" can mean a type, but it is more general). The result is that your unmodified Python programs run faster. Benefits 2x to 100x speed-ups, typically 4x, with an unmodified Python interpreter and unmodified source code, just a dynamically loadable C extension module. Drawbacks Psyco currently uses a lot of memory. It only runs on Intel 386-compatible processors (under any OS) right now. There are some subtle semantic differences (i.e. bugs) with the way Python works; they should not be apparent in most programs.
Alex MIkhalev

Game Programming with Python, Lua, and Ruby | EShare | Free Ebooks Share - 5 views

  •  
    Пame Programming with Python, Lua, and Ruby
jamessidis

Browser Automation with Python and Selenium - 0 views

  •  
    If you want to learn Browser Automation with Python and Selenium, then this tutorial is for you.
limatsoft

Machine learning with python | Best Machine Learning Courses - 0 views

  •  
    Best Machine Learning Courses using Python will help you gain expertise in various machine learning algorithms such as regression, clustering, decision trees, Naïve Bayes, and ensemble techniques. Our Machine learning with python course will also help you understand the concepts of Statistics and machine learning algorithms like supervised and unsupervised algorithms.
reckoner reckoner

partiallydisassembled.net - 0 views

  • Neat script I wrote for a friend to annotate a Python script with the types observed during a run of the program
  •  
    Neat script I wrote for a friend to annotate a Python script with the types observed during a run of the program.
reckoner reckoner

PerryGeo » A quick Cython introduction - 0 views

  • I love python for its beautiful code and practicality. But it’s not going to win a pure speed race with most languages. Most people think of speed and ease-of-use as polar opposites - probably because they remember the pain of writing C. Cython tries to eliminate that duality and lets you have python syntax with C data types and functions - the best of both worlds. Keeping in mind that I’m by no means an expert at this, here are my notes based on my first real experiment with Cython:
reckoner reckoner

ShowMeDo - 0 views

  •  
    This series aims to get you up and running with Python on Windows XP. Here I have distilled for you the knowledge that I wanted when I first started with Python. During 1.5 hours of video I'll get you up and running with the right Python distribution, cod
reckoner reckoner

Screen Shots - Wingware Python IDE - 1 views

  •  
    Wing IDE Professional speeds development with powerful editor and code intelligence capabilities. Reduce typing burden and errors with the auto-completer, find and inspect code with the source browser, view context-appropriate call signature and documenta
reckoner reckoner

Parallelization on muli-CPU hardware? - comp.lang.python | Google Groups - 0 views

  •  > According to the fact that all Thread run on the same CPU (if i didn't  > understand wrong), i'm asking if python will suffer from the future  > multicore CPU. Will not python use only one core, then a half or a  > quarter of CPU ? It could be a serious problem for the future of python... I agree that it could potentially be a serious hindrance for cpython if "multiple core" CPUs become commonplace. This is in contrast to jython and ironpython, both of which support multiple-cpu parallelism. Although I completely accept the usual arguments offered in defense of the GIL, i.e. that it isn't a problem in the great majority of use cases, I think that position will become more difficult to defend as desktop CPUs sprout more and more execution pipelines. I think that this also fits in with AM Kuchling's recent musing/thesis/prediction that the existing cpython VM may no longer be in use in 5 years, and that it may be superceded by python "interpreters" running on top of other VMs, namely the JVM, the CLR, Smalltalk VM, Parrot, etc, etc, etc. http://www.amk.ca/diary/archives/cat_python.html#003382 I too agree with Andrew's basic position: the Python language needs a period of library consolidation. There is so much duplication of functionality out there, with the situation only getting worse as people re-invent the wheel yet again using newer features such generators, gen-exps and decorators.
Jay Dee

Good SEO Staff and Services - 2 views

Nowadays, people do not use the yellow pages or go directly to the stores to buy something. They are taking advantage of the internet whenever they have to buy something. For that reason, I have a ...

SEO Perth

started by Jay Dee on 25 Jan 11 no follow-up yet
dshekhar17

Python Decorator with Example | Hack The Developer - 0 views

  •  
    Python Decorator with Example
dshekhar17

Closures in Python with Examples | Hack The Developer - 0 views

  •  
    Closures in Python with Examples
dshekhar17

Python List Comprehension with Examples | Hack The Developer - 0 views

  •  
    Python List Comprehension with Examples
marytmoreno

How to Create a Website with Joomla in 2020? [Step by Step] | ArticleIFY - 0 views

  •  
    Anyone who wants to earn extra money may consider creating a website. There are several platforms to do this, but in this article, we will show how to create a website with Joomla.
steelkiwi

Build your ideas faster and easier with Python & Django Web Development Services - 0 views

  •  
    Want to hit a million requests per second but doubt if Python can do that? Today we can speed up any project written in Python. High-performance web apps for your business growth and success.Build your ideas faster and easier with Python & Django Web Development Services
1 - 20 of 140 Next › Last »
Showing 20 items per page