- 45
- 307 648
xlwings
Приєднався 6 лют 2014
This channel is about Python for Excel with a focus on xlwings.
Stream Bitcoin prices to Excel via streaming functions
In the traditional version of Excel, streaming functions were called “RTD functions” or “RealTimeData functions”. However, unlike traditional RTD functions, streaming functions don’t use a local COM server. Instead, the process runs as a background task on xlwings Server and pushes updates via WebSockets (using Socket.io) to Excel. What’s great about streaming functions is that you can connect to your data source in a single place and stream the values to every Excel installation in your entire company.
To create a streaming function, you simply need to write an asynchronous generator. That is, you need to use async def and yield instead of return
Here's the link to the xlwings server repo on GitHub: github.com/xlwings/xlwings-server
To create a streaming function, you simply need to write an asynchronous generator. That is, you need to use async def and yield instead of return
Here's the link to the xlwings server repo on GitHub: github.com/xlwings/xlwings-server
Переглядів: 715
Відео
Excel Custom Functions ("UDFs") with Python and Azure Functions (webinar)
Переглядів 1,7 тис.Рік тому
This webinar is about writing custom functions (a.k.a. user-defined functions UDFs) and deploying them to Azure functions so that there is no local Python dependency! Thanks to the modern Excel add-ins, custom functions run on all platforms (Windows, macOS, Web). Agenda * Custom Function basics * Using NumPy, pandas, and PostgreSQL * Deployment to Azure functions via GitHub Actions * Logging * ...
Python in Excel: How to write =PY cells in VS Code
Переглядів 3,1 тис.Рік тому
Even though this isn't officially supported yet, you can use xlwings to sync up your external editor with Microsoft's Python in Excel (=PY).
How to use GitHub Copilot with VBA in Excel
Переглядів 12 тис.Рік тому
Using VS Code with the xlwings CLI allows you to use GitHub Copilot with the venerable VBA. To download xlwings.exe: github.com/xlwings/xlwings/releases
Use Python to write Custom Functions for Excel (Win/macOS/Web)
Переглядів 6 тис.Рік тому
Docs: docs.xlwings.org/en/latest/pro/server/officejs_custom_functions.html Quickstart Repo: github.com/xlwings/xlwings-officejs-quickstart The new xlwings custom functions work on every platform, including Excel on Windows, Excel on macOS, and Excel on the web. This video gives you an introduction to how the developer experience looks like.
Build Office.js add-ins for Excel with Python
Переглядів 9 тис.Рік тому
The sample repository links are at the end of this description! Office.js add-ins are extremely powerful, but also very hard to develop. At least this is what it seems if you follow Microsoft's official beginner's guide. However, at their core, Office.js add-ins are really simple (just 2 files!), and that's where we'll start this webinar. I'll touch on the following topics: * The simplest Offic...
Connect Google Sheets to SQLite
Переглядів 5 тис.2 роки тому
This tutorial shows you how to query a SQLite database from Google Sheets with Python and xlwings PRO. Follow the tutorial on www.xlwings.org/tutorials/connect-googlesheets-to-sqlite SQLite is an open-source, file-based database that’s very powerful yet super easy to set up. The Litestream project has further enhanced SQLite’s capabilities, allowing you to continuously stream database changes t...
How to build web apps with Google Sheets and Python
Переглядів 6 тис.2 роки тому
Using Google Sheets with Python as the backend allows you to build secure and flexible internal applications blazingly fast! This webinar gives you a high-level overview over: * Using FastAPI as the backend * Authentication and authorization: github.com/xlwings/xlwings-googlesheets-fastapi-auth * Security * Different ways of running your code * Triggers * Development environment * Production de...
Edit your Excel VBA with VS Code (with auto-sync)
Переглядів 63 тис.2 роки тому
This video shows how you can edit VBA code with VS Code (or any other editor you like) to get all the following (and more): * Line numbers * Dark mode * Git version control *while editing* * Have access to all key combinations like Ctrl-/ to comment/uncomment xlwings is a Python package, you'll find the installation instructions here: docs.xlwings.org/en/stable/installation.html
The new xlwings Remote Interpreter
Переглядів 2,9 тис.2 роки тому
This webinar introduces xlwings' brand new support for a remote Python interpreter. No more installation of Python on each end-user's machine! (By the way, that Google Sheets bug in the demo was fixed with 0.27.3) Agenda: * What's the advantage/disadvantage of a remote interpreter * Local development with Desktop Excel * Remote deployment of the Python interpreter * Move Excel to the cloud: Goo...
Automate Excel on the web with Python & xlwings (Development environment)
Переглядів 6 тис.2 роки тому
This video shows you how you can get a development environment up and running in a few minutes by relying on Gitpod. The used repository is: github.com/xlwings/xlwings-web-fastapi See the docs: docs.xlwings.org/en/stable/remote_interpreter.html
Automate Google Sheets with Python & xlwings (Development environment)
Переглядів 3,3 тис.2 роки тому
This video shows you how you can get a development environment up and running in a few minutes by relying on Gitpod. The used repository is: github.com/xlwings/xlwings-web-fastapi See the docs: docs.xlwings.org/en/stable/remote_interpreter.html
Webinar: Automate your PDF factsheets with xlwings Reports
Переглядів 2,3 тис.3 роки тому
Get the slides: www.slideshare.net/xlwings/automate-your-pdf-factsheets-with-xlwings-reports What you’ll learn In this webinar, you’ll learn how xlwings Reports allows you to automate the whole reporting toolchain from data acquisition and manipulation to automatic deployment of your PDF factsheets. You’ll see how xlwings Reports works and how it differs from the open source version of xlwings....
Bulk Create QR Codes in Excel with Python
Переглядів 4,9 тис.3 роки тому
This tutorial shows you how to insert QR codes into Microsoft Excel with Python. We’ll start by writing a few lines of Python code that you could run from a Jupyter notebook or as a traditional Python script before we’ll see how we can generate QR codes at the click of a button via the xlwings add-in. To conclude, we’ll build a user-defined function (UDF) in Excel to insert QR codes. See the fu...
xlwings PRO: How to release tools with the one-click installer
Переглядів 1,5 тис.3 роки тому
This video shows you how you can release xlwings tools easily to your end users by making use of the one-click installer together with the "xlwings release" command. Also see the docs: docs.xlwings.org/en/stable/release.html
What Makes Excel's Lambda Functions so Awesome (and what doesn't)?
Переглядів 1,6 тис.3 роки тому
What Makes Excel's Lambda Functions so Awesome (and what doesn't)?
Do you know what Spreadsheets are used for in your company and why they are necessary? by Sam Arthur
Переглядів 6534 роки тому
Do you know what Spreadsheets are used for in your company and why they are necessary? by Sam Arthur
ExcelAnalyzer - Build better, faster and error-free spreadsheets (by Maarten Bessems)
Переглядів 1,6 тис.4 роки тому
ExcelAnalyzer - Build better, faster and error-free spreadsheets (by Maarten Bessems)
xlwings Performance by Felix Zumstein
Переглядів 2,7 тис.4 роки тому
xlwings Performance by Felix Zumstein
Deployment of xlwings-powered spreadsheets (webinar)
Переглядів 8 тис.4 роки тому
Deployment of xlwings-powered spreadsheets (webinar)
xlwings Reports: An introduction to Frames
Переглядів 1,8 тис.4 роки тому
xlwings Reports: An introduction to Frames
How to embed your Python code in Excel with xlwings PRO (no more external source code file needed)
Переглядів 7 тис.4 роки тому
How to embed your Python code in Excel with xlwings PRO (no more external source code file needed)
The new "Run main" button in the xlwings add-in (added in xlwings CE v0.16.0)
Переглядів 5 тис.4 роки тому
The new "Run main" button in the xlwings add-in (added in xlwings CE v0.16.0)
Live data sharing & workflow automation: By David Jones at the xlwings meetup in London (16 Jan 20)
Переглядів 5264 роки тому
Live data sharing & workflow automation: By David Jones at the xlwings meetup in London (16 Jan 20)
Reporting with Excel & Python: Talk by Felix Zumstein at the xlwings meetup in London (16 Jan 20)
Переглядів 1,9 тис.4 роки тому
Reporting with Excel & Python: Talk by Felix Zumstein at the xlwings meetup in London (16 Jan 20)
Using xlwings & finmarketpy: Talk by Saeed Amen at the xlwings meetup in London (16 Jan 20)
Переглядів 8564 роки тому
Using xlwings & finmarketpy: Talk by Saeed Amen at the xlwings meetup in London (16 Jan 20)
Python and Excel in Finance (Talk by Felix Zumstein at the PyData Meetup Zurich)
Переглядів 3,4 тис.5 років тому
Python and Excel in Finance (Talk by Felix Zumstein at the PyData Meetup Zurich)
Great feature! Is it possible to work with folders in vscode? I know, they cant be synced to the vba project but it would make my life much easier if that would be possible. I tried creating a folder in vscode and move one .bas or .cls file into that folder but i get an error message in the terminal.
Have to say his changes to game for me capturing data and pushing it to db’s, thanks for creating this amazing tool Felix!
made my day!
is there a way to use xlwings to add a button to an excel sheet so i do not have to do it manually?
Definitely useful. Also, I just learnt a lot of new tricks on VS Code.
Good work, but Seems it should starts with installation steps, starting point missing. All vba user are not friendly with 'packages' stuffs
Amazing! Thank you!
Oh my God! But this is a dream come true! VBA on VSCode. Why isn't this part of Excel officially?
how can i depoly an addin for excel?
The project was renamed from remote interpreter to xlwings Server and now has dedicated docs. You’ll find the answer most likely here: server.xlwings.org/en/latest/install_officejs_addin/
3988 Barrows Overpass
Thansk man! pretty nice
Wow, your tutorial is amazing... Can you show if something similar is available for Libreoffice Calc..?
Xlwings is soo good, I just wish that when you edit some code fron vba, it recives correctily that characters such as ç or á, for a brazilian like me, it would be perfect. thanks XLwings for making my life a litle easier!
Você entendeu como faz? Eu não sou desenvolvedor. Sou um hobista de vba. Mas sinto falta da sugestão dos códigos quando se começa a digitar, que tem em outros programas e não tem no vba genuíno
@@MCAES01 Cara, funcionou sim, o único problema que eu tive foram as letras como "ã" e "ç" viram "??". depois de baixar a extensão, vc abre o excel normalmente e digita no terminal do vscode "xlwings vba edit", isso vai procurar o excel aberto e te perguntar se quer edita-lo, digite y e seja feliz kk.
E pra auto completar já é outra extensão
@@KaueS.Hoffmann-Ethos caramba é só isso? Vou tentar... Acabei achando outro vídeo que fala da extensão *xvba* essa faz o auto preenchimento
@@KaueS.Hoffmann-Ethos esse seu problema talvez se resolva configurando o teclado para o padrão americano
will this work with access
No. But it’s open source and you may take it as a starting point for PPT
Omg i love it. I missed the tabbing in VB so much.
That’s incredible.. is there already a standalone version? Thanks for your work!
Yes there has been since a while: github.com/xlwings/xlwings/releases
Just discovered your channel. I don't think a lot of people understand (yet) how powerful this is!
Felix, this is really great - when I looked at Office Script, I was quite pleased with its readability as compared to M in PowerQuery which I felt was very convoluted. But then the limitations are quite a bit and I have to resort to using Power Automate which is an UI-based tool. Very happy to learnt hat I can run a FastAPI backed to connect XL to my backend - that opens a lot of options for me. thank you so much for the detailed walkthrough of the MS Landscape for programming in Excel.
Felix, this is really impressive - this is such a valuable thing for a person like me who works with a lot of Excel but also want to reach out to a programming language to avoid the limitations of tools like PowerQuery.
I installed mkcert, but I can't find the certificates you mention it creates. It asks for a series of permissions. Very confusing
does this work with microsoft word as well?
I'd like to know too.
One of the biggest attractions of VBA (for me, at least) is the VBE. Press Alt-11, insert module, write a function. It has intellisense, an object model I have memorized, instant type checking. Press F5. Is it possible to use xlwings to code python using Excel's VBE with all the niceties that we get from VBA? If not, is it on the roadmap?
Do you have a video that shows how to implement this POC demonstration?
太厉害了
Very nice - put a show stopper, that danish æøå are messed up when the code returns to Excel VBA
This may be connected to: github.com/xlwings/xlwings/pull/2380
This tutorial is epic! Thank you
I'm interested in this. The AddIn can check differences about two binary coded VBA integrated Codes? I researched, but got no trustable source, which software could do this?
I was so excited about this, but something seems off with this module. When running " xlwings vba edit", I get this error: "Please install watchgod to use this functionality", although I already installed it :(
you can download an xlwings.exe from the Github release page nowadays, see the newer video about Copilot
There are MANY books on python out there (some good, some great, some absolutely crap) but if you have worked on microsoft excel before and want to learn python (specifically for data analysis) this is the book i personally used and would highly recommend...
Excel application shows manifest-officejs-hello.xml is invalid. Looks like it's something started happening recently. Any idea what's causing it.
Thank you very much! Amazing content!
It was only ever about Dark Mode
4:02 You can comment out multiple lines in the VBA IDE by attaching an accelerator key C to the comment quick action, and U to the uncomment quick actions.
but how to debug with vba in vs code ide? thanks
I download the xlwings-main file from github but cannot manage to import the xlwings into my python code successfully. I ran, into the xlwings-mai file, python setup.py --user (or something like that), it didn't seem to end well and then i'm left in this state, what do I miss ? I'm working on a linux virtual machine and cannot use pip for administrative rights that I don't have, thank you for your help in advance !
It’s better to open an issue in GitHub
¡Gracias!
Seems very promising, thanks for sharing! Unfortunately I tried this and am getting "error walking file system: PermissionError [WinError 5] Access is denied: [path to local application data]". This happens even when I run VS Code as Administrator. Any clues as to what might be the issue? Thanks
This is likely an issue with how you run xlwings.exe, so probably best to run it from a Command Prompt that you start with admin privileges (right click > Run as administrator). I don't think that when you start VS Code as admin it automatically runs the Terminal as admin, too.
is there a way of working with multiple workbooks?
olá. eu quero somente rodar o vba escrito no vscode no excel, nao quero fazer alteracoes mais afundo, so isso mesmo... é necessario todos estes arquivos? pq como uso muito vba, vai ser um grande volume de arquivos se forem tantos arquivos para cada projeto vba... tem como usar so 1 arquivo? como faço?
its a game changer. thank you!
Great video! Minor comment: @function_name is optional and you can skip it to make the code even smaller
thanks for pointing this out! You can also use an actual web framework, which may be also a good idea
incredible
I cant do it, can you help me? please! error is: "xlwings" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable.
A very handy way to get vba-code under git-control! That is the most important for me. Thanks! As an alternative editor it's less interesting as intelisense and debugging isn't there
Amazing work!! Finally, I can use VBA at my work! I wouldn't say I like the VBE; because of it, I always stay far away from VBA.
That is just Great was looking for such a tool for years
Been using my own solution for two years because the VBE is so bad, this is amazing! Thanks!
I just wanted to thank you for your book Python For Excel which I am nearly done reading. It was a grand introduction which gives me a lot of confidence in pursuing programming! Thanks from Philadelphia, USA!
Thanks so much for letting me know 🙏!
Amazing addition! Thank you for the explanation!
*Very cool addition to xlwings, Felix!* Totally agree. The Excel formula bar is for sure not the best code "editor" 😅