Publishing Algorithms

When you're ready to make your Algorithm runnable, click the Publish button. The first screen, Changes, allows you to enter any release notes (these will be saved in the git history of your project).

Next, under Sample I/O, enter a sample input which should show up on your Algorithm's page once it is published. This helps other users know how to try out your Algorithm. Click Run, and wait for it to complete before proceeding.

The final Versioning screen allows you to decide whether this Algorithm should be callable by anyone, or just you (or your Organization, if you created it under an Org). If you make it Public, you can also choose a royalty under "pricing": 70% of this will go into your account each time somebody else runs your Algorithm, payment for all your hard work! Lastly, pick what version level to publish this at (major, minor, or revision) and click "Publish".

Congratulations, you've just published your first Algorithm! You can come back to the editor anytime to make more changes and re-publish; we'll keep all the old versions around as well, so when you call your Algorithm, you can call any version you need.

After publishing, you'll find yourself on your new Algorithm page. You can test it out, and download code snippets to call it from and other language you like.

Please take a minute to fill in the one-line description under the Algorithm name, then click the Docs tab and add a more complete description. Filling this out provides others (and future-you) a way of remembering what the Algorithm does, and how to use it. We start you off with an easy-to-follow template: just fill in the overview and provide a few examples of valid input and output. You can also place an image in this document, and it will become the thumbnail image for your Algorithm.

If you ever need to delete your Algorithm, you can find that button at the bottom of the Manage tab of your Algorithm's page -- but only if it has never been Publicly published. To keep others' code from breaking, we can't delete Public Algorithms.

Here, we've focused on editing and publishing an Algorithm using the Web IDE.  If you prefer a code-based editing and publishing experience, you can do so without ever touching a user interface: see the Algorithm Management API for more information.

Ready for more? Next, we'll learn about the specifics of using hosted data in our Algorithms.