Scottish independence: Will there be a second referendum?

The Scottish government has lost its case in the Supreme Court - so what happens now?