Notebook functions as Excel formulas or actions on Windows and Mac

I like to use this board to introduce JupyterExcel, a Python package that connects Jupyter notebooks with Microsoft Excel on Windows and Mac. Turn your notebook functions into Excel worksheet formulas or task pane actions accessed from the ribbon. Keep your calculations in Python or JavaScript in Jupyter notebooks, and let users work with them in Excel. It is stable and easy to use than I expected.

:camera_with_flash: The screenshot shows a Python function defined in Jupyter being called directly from an Excel formula: =Jupyter.Sum(D4, D5:D6, D7)

With JupyterExcel, you can:

  • Use Python notebook functions in Excel formulas and choose the virtual environment each function runs in.
  • Run JavaScript functions locally within the add-in or on the Jupyter server.
  • Build task pane actions that process worksheet data and sync results back to Excel.

:bar_chart: Try the demo
The “Jupyter For Excel” add-in is available in the Microsoft Store and connects to the demo server at www.JupyterExcel.com.

  1. In Excel, go to Home → Add-ins and search for Jupyter For Excel.
  2. Enter the demo access token: 964d7b0202104cc79782f7682b29e216
  3. Try a formula such as =Jupyter.Sum(1, 1).
  4. Click Actions on the add-in’s ribbon tab to explore the demo functions.
    Visit above web to explore the demo and try to add your own functions to the notebooks. You need close and open Excel to load the new functions.

:snake: Setup your own environment
Host Jupyter with JupyterExcel on your own computer or on a server in AWS or another cloud provider:

  1. Install Jupyter.
  2. Install the package: pip install jupyterexcel.
  3. Configure JupyterExcel for your environment.
  4. Load the generated add-in manifest into Excel.
  5. Start using your notebook functions in Excel.
    Setup instructions: GitHub - luozhijian/jupyterexcel: Jupyter Extension make notebooks as web api return Json for Excel to Call · GitHub

If you work with Jupyter and Excel, I’d love to hear your feedback. Your use cases will help guide future improvements.

2 Likes