  contentType: 'application/json',
                success: function(response) {
                    editor.setValue(response.data);
                }
            });
        }

        function sendDataToPython() {
            var data = editor.getValue();
            $.ajax({
                url: '/receive_data',
                type: 'POST',
                contentType: 'application/json',
                data: JSON.stringify({"data": data}),
                success: function(response) {
                