In Research Notebook if I enter
from quantopian.algorithm import order_optimal_portfolio
I receive "ImportError: No module named algorithm".
When I replace "quantopian.algorithm" with "zipline.api ":
from zipline.api import order_optimal_portfolio
I receive
"InputRejected:
Importing order_optimal_portfolio from zipline.api raised an ImportError. No modules or attributes with a similar name were found."
Am I doing something wrong? Where to import "order_optimal_portfolio" from?