The invention relates to a thermally tunable filter comprising an optical fiber (1) containing a Bragg grating (10) on a portion of the fiber (1), a resistive film (6) being in thermal contact with the grating (10), wherein the resistive film (6) is deposited on the external surface of a capillary (7) surrounding the portion of fiber containing the grating (10).