JuliaInXL is a package that’s designed to enhance Microsoft Excel® spreadsheets with Julia. It empowers users to access the Julia language and its rich package ecosystem from within the world’s most popular spreadsheet.
It is easily one of the most useful packages bundled with the Enterprise version of JuliaPro (v0.6.0.1, now supporting Julia 0.6).
The package lets users call Julia functions from Excel and enables loading files and functions into new or existing Julia processes from the Excel ribbon. It also allows switching a single Excel session between multiple separate Julia environments and lets users effortlessly develop and deploy Julia functionality to Excel by using Juno and JuliaInXL together.
JuliaInXL is installed by running the “JuliaPro_JuliaInXL” executable that is available on downloading JuliaPro (Enterprise).
Once the installation is complete, a Julia process should launch automatically on starting an Excel session in most cases. In case a Julia process doesn’t launch automatically, the user can launch it using the “Launch Local Julia” button embedded in the Office ribbon. The Office Ribbon also contains a number of buttons and text boxes for controlling the connection between Julia and Excel, as well as loading functionality into the current Julia process.
The ”Launch Local Julia” button launches a new child Julia process, establishing a fresh TCP connection between Excel and Julia, killing any previously active Julia processes.
Adjacent to the “Launch Local Julia” button is a “Julia File Path” button (under the “Julia” tab) that lets users enter the path to a .jl file that can be loaded into the current Julia process. It is the equivalent of running the include command to load a particular file in a Julia terminal
In our current example, we have preloaded a file called “sim.jl”, that defines a Julia function called simulate.
To call this function from Excel, we use the jlcall worksheet function.
The first input argument to the jlcall function is a string. The string in question should be the name of the registered Julia function the user intends to call. Subsequent arguments to the jlcall function are passed as parameters to the Julia function being called. These can be constant literals, or cell references. Arrays can be passed via cell ranges.
In this example, a sample worksheet function call would look like this : =jlcall("simulate",100) (internally calling the simulate function with 100 as it’s input parameter, simulate(100))
By copying the contents of the cell in which jlcall was executed into multiple cells, the original jlcall operation can be repeated within multiple cells.
That brings us to the end of this brief JuliaInXL demonstration. Read the documentation to know more about this simple, comprehensive and extremely handy tool, or watch this video tutorial by Julia Computing’s Andy Greenwell below.
JuliaInXL: Enhancing spreadsheets with Julia
Julia is the fastest high performance open source computing language for data, analytics, algorithmic trading, machine learning, artificial intelligence, and many other domains. Julia solves the two language problem by combining the ease of use of Python and R with the speed of C++. Julia provides parallel computing capabilities out of the box and unlimited scalability with minimal effort. For example, Julia has run at petascale on 650,000 cores with 1.3 million threads to analyze over 56 terabytes of data using Cori, the world’s sixth-largest supercomputer. With more than 1.2 million downloads and +161% annual growth, Julia is one of the top programming languages developed on GitHub. Julia adoption is growing rapidly in finance, insurance, machine learning, energy, robotics, genomics, aerospace, medicine and many other fields.
Julia Computing was founded in 2015 by all the creators of Julia to develop products and provide professional services to businesses and researchers using Julia. Julia Computing offers the following products:
Julia users, partners and employers hiring Julia programmers in 2017 include Amazon, Apple, BlackRock, Capital One, Citibank, Comcast, Disney, Facebook, Ford, Google, IBM, Intel, KPMG, Microsoft, NASA, Oracle, PwC, Uber, and many more.
Need help with Julia?
We also provide training and consulting services
and build open source or proprietary packages
for our customers on a consulting basis. Mail us:
Julia Computing was founded by all the creators
of the language to provide commercial support
to Julia users. We are based in Boston, New York,
San Francisco, London and Bangalore with
customers across the world.
© 2016 - 2020 Julia Computing, Inc. All Rights Reserved.