Skip to content

Instantly share code, notes, and snippets.

@tonyroberts
Last active July 15, 2020 13:33
Show Gist options
  • Save tonyroberts/fdfb1164bf05deee67cbcfbb570ce487 to your computer and use it in GitHub Desktop.
Save tonyroberts/fdfb1164bf05deee67cbcfbb570ce487 to your computer and use it in GitHub Desktop.
from pyxll import xl_func
import pubsub
@xl_func
def publish(topic, value):
"""Publish a value on a topic to be picked up by another sheet"""
pubsub.publish(topic, value)
return f"[Published to {topic}]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment