This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
The link will take you to the examples page of the promote-python library. Click on the parent to go up a level.
This page has a ton of useful information that I recommend you read. For getting started, download the library to your computer.
I recommend creating a repository folder on your computer and storing the files there.
Log into the Promote web app
Go to your Account page and obtain your user name and API Key – store these in a file or somewhere easy to access as you’ll need the information.
Now – let’s publish an example from Python into Promote.
Open main.py from the \repositories\promote-python-master\examples\hello-world folder using your favorite text editor. I like Sublime Text ( https://www.sublimetext.com/ ) but you can use whatever you’d like. Windows 10 has a built-in editor or some people prefer Notepad++.
Edit the USERNAME, API_KEY, and PROMOTE_URL information with your information. I would recommend copying this section of the code so it’s easy to re-use.
Before deploying, test the model. EXTREMELY IMPORTANT! I’ll show two ways to test the model: Command Prompt and Jupyter
First, comment out the line with the deploy method.
Navigate to the folder that contains the hello-world main.py file you just edited from the Anaconda Command Prompt.