Creation of notebook directive