Various embodiments are generally directed to a surgical probe with shape-memory material, such as a probe with a set of light sources, for instance. Some embodiments are particularly directed to a cannula with a shape-memory material that is used to secure a window. In one or more embodiments, for example, an apparatus for surgical use may include a cannula with a shape-memory material in an austenitic phase. In some embodiments, the window may be positioned at an opening of the cannula when the shape-memory material is in a martensitic phase. In some embodiments, transitioning the shape-memory material from the martensitic phase to the austenitic phase secures the window in position at the opening of the cannula.