Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Créer une instance de notebooks gérés à l'aide de la console Google Cloud
Découvrez comment créer une instance de notebooks gérés Vertex AI Workbench et ouvrir JupyterLab à l'aide de Google Cloud Console.
Cette page explique également comment arrêter, démarrer, réinitialiser ou supprimer une instance de notebooks gérés.
Pour obtenir des instructions détaillées sur cette tâche directement dans la console Google Cloud, cliquez sur Visite guidée :
Sign in to your Google Cloud account. If you're new to
Google Cloud,
create an account to evaluate how our products perform in
real-world scenarios. New customers also get $300 in free credits to
run, test, and deploy workloads.
In the Google Cloud console, on the project selector page,
select or create a Google Cloud project.
Dans le champ Nom de la fenêtre Créer une instance, saisissez my-instance.
Cliquez sur Créer.
Une fois que vous avez terminé les tâches décrites dans ce document, vous pouvez éviter de continuer à payer des frais en supprimant les ressources que vous avez créées. Pour en savoir plus, consultez la section Effectuer un nettoyage.
Ouvrir JupyterLab
Une fois l'instance créée, Vertex AI Workbench la démarre automatiquement. Lorsque l'instance est prête à l'emploi, Vertex AI Workbench active automatiquement un lien Ouvrir JupyterLab.
À côté du nom de votre instance de notebooks gérés, cliquez sur Ouvrir JupyterLab.
Dans la boîte de dialogue Authentifier votre notebook géré, cliquez sur le bouton pour obtenir un code d'authentification.
Choisissez un compte, puis cliquez sur Autoriser. Copiez le code d'authentification.
Dans la boîte de dialogue Authentifier votre notebook géré, collez le code d'authentification, puis cliquez sur Authentifier.
Votre instance de notebooks gérés ouvre JupyterLab.
Ouvrir un nouveau fichier notebook
Sélectionnez Fichier > Nouveau > Notebook.
Dans la boîte de dialogue Sélectionner le noyau, sélectionnez Python, puis cliquez sur Sélectionner.
Le nouveau fichier notebook s'ouvre.
Modifier le noyau
Vous pouvez modifier le noyau du fichier notebook JupyterLab à partir du menu ou dans le fichier.
Menu
Dans JupyterLab, dans le menu Noyau, cliquez sur Modifier le noyau.
Dans la boîte de dialogue Sélectionner le noyau, sélectionnez un autre noyau à utiliser.
Cliquez sur Sélectionner.
Dans le fichier
Dans le fichier notebook JupyterLab, cliquez sur le nom du noyau.
Dans la boîte de dialogue Sélectionner le noyau, sélectionnez un autre noyau à utiliser.
Cliquez sur Sélectionner.
Arrêter votre instance
Dans Google Cloud Console, accédez à la page Notebooks gérés.
Sélectionnez l'instance que vous souhaitez démarrer.
Cliquez sur arrow_rightDémarrer.
Réinitialiser votre instance
La réinitialisation forcée d'une instance efface le contenu de la mémoire de votre machine virtuelle (VM) et rétablit l'état initial de la VM.
Pour en savoir plus, consultez Réinitialiser une VM.
Dans Google Cloud Console, accédez à la page Notebooks gérés.
Pour éviter que les ressources utilisées sur cette page soient facturées sur votre compte Google Cloud, procédez comme suit :
Si vous avez créé un projet pour apprendre à utiliser les notebooks gérés par l'utilisateur Vertex AI Workbench et que vous n'en avez plus besoin, supprimez-le.
Si vous avez utilisé un projet Google Cloud existant, supprimez les ressources que vous avez créées pour éviter que des frais ne soient facturés sur votre compte :
Dans Google Cloud Console, accédez à la page Notebooks gérés.
Sélectionnez la ligne contenant l'instance à supprimer.
Cliquez sur deleteSupprimer.
(Selon la taille de votre fenêtre, le bouton Supprimer peut se trouver dans le menu d'options more_vert.)
Pour confirmer l'opération, cliquez sur Supprimer.
Étapes suivantes
Essayez l'un des tutoriels inclus dans votre nouvelle instance de notebooks gérés.
Dans l'explorateur de fichiersfolder JupyterLab, ouvrez le dossier Tutoriels, puis l'un des fichiers notebook.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[],[],null,["# Quickstart: Create a managed notebooks instance by using the Google Cloud console\n\nCreate a managed notebooks instance\nby using the Google Cloud console\n=====================================================================\n\n\n| Vertex AI Workbench managed notebooks is\n| [deprecated](/vertex-ai/docs/deprecations). On\n| April 14, 2025, support for\n| managed notebooks will end and the ability to create managed notebooks instances\n| will be removed. Existing instances will continue to function\n| but patches, updates, and upgrades won't be available. To continue using\n| Vertex AI Workbench, we recommend that you\n| [migrate\n| your managed notebooks instances to Vertex AI Workbench instances](/vertex-ai/docs/workbench/managed/migrate-to-instances).\n\n\u003cbr /\u003e\n\nLearn how to create a Vertex AI Workbench managed notebooks instance\nand open JupyterLab by using the Google Cloud console.\nThis page also describes how to stop, start, reset, or delete\na managed notebooks instance.\n\n*** ** * ** ***\n\nTo follow step-by-step guidance for this task directly in the\nGoogle Cloud console, click **Guide me**:\n\n[Guide me](https://console.cloud.google.com/freetrial?redirectPath=/?walkthrough_id=vertex-ai--workbench--managed--create-managed-notebooks-instance-console-quickstart)\n\n*** ** * ** ***\n\n\u003cbr /\u003e\n\nBefore you begin\n----------------\n\n- Sign in to your Google Cloud account. If you're new to Google Cloud, [create an account](https://console.cloud.google.com/freetrial) to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n-\n\n\n Enable the Notebooks API.\n\n\n [Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=notebooks.googleapis.com&redirect=https://console.cloud.google.com)\n\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n-\n\n\n Enable the Notebooks API.\n\n\n [Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=notebooks.googleapis.com&redirect=https://console.cloud.google.com)\n\n\u003cbr /\u003e\n\nCreate an instance\n------------------\n\n1. In the Google Cloud console,\n go to the **Managed notebooks** page.\n\n [Go to Managed notebooks](https://console.cloud.google.com/vertex-ai/workbench/managed)\n2. Click add_box **Create new**.\n\n3. In the **Create instance** window, in the **Name** field,\n enter `my-instance`.\n\n4. Click **Create**.\n\nWhen you finish the tasks that are described in this document, you can avoid\ncontinued billing by deleting the resources that you created. For more information, see\n[Clean up](#clean-up).\n\nOpen JupyterLab\n---------------\n\nAfter you create your instance, Vertex AI Workbench automatically starts\nthe instance. When the instance is ready to use, Vertex AI Workbench\nactivates an **Open JupyterLab** link.\n\n1. Next to your managed notebooks instance's name,\n click **Open JupyterLab**.\n\n2. In the **Authenticate your managed notebook** dialog, click the button\n to get an authentication code.\n\n3. Choose an account and click **Allow**. Copy the authentication code.\n\n4. In the **Authenticate your managed notebook** dialog,\n paste the authentication code, and then click **Authenticate**.\n\n Your managed notebooks instance opens JupyterLab.\n\nOpen a new notebook file\n------------------------\n\n1. Select **File \\\u003e New \\\u003e Notebook**.\n\n2. In the **Select kernel** dialog, select **Python** ,\n and then click **Select**.\n\n Your new notebook file opens.\n\nChange the kernel\n-----------------\n\nYou can change the kernel of your JupyterLab notebook file from the menu\nor in the file. \n\n### Menu\n\n1. In JupyterLab, on the **Kernel** menu, click **Change kernel**.\n\n2. In the **Select kernel** dialog, select another kernel to use.\n\n3. Click **Select**.\n\n### In the file\n\n1. In your JupyterLab notebook file, click the kernel name.\n\n2. In the **Select kernel** dialog, select another kernel to use.\n\n3. Click **Select**.\n\nStop your instance\n------------------\n\n1. In the Google Cloud console, go to the **Managed notebooks** page.\n\n [Go to Managed notebooks](https://console.cloud.google.com/vertex-ai/workbench/managed)\n2. Select the instance that you want to stop.\n\n3. Click square **Stop**.\n\nStart your instance\n-------------------\n\n1. In the Google Cloud console, go to the **Managed notebooks** page.\n\n [Go to Managed notebooks](https://console.cloud.google.com/vertex-ai/workbench/managed)\n2. Select the instance that you want to start.\n\n3. Click arrow_right **Start**.\n\nReset your instance\n-------------------\n\nResetting an instance forcibly wipes the memory contents of your instance and\nresets the instance to its initial state. To learn more about how resetting an\ninstance works, see\n[Resetting an instance](/compute/docs/instances/suspend-stop-reset-instances-overview#resetting-instance).\n\n1. In the Google Cloud console, go to the **Managed notebooks** page.\n\n [Go to Managed notebooks](https://console.cloud.google.com/vertex-ai/workbench/managed)\n2. Select the instance that you want to reset.\n\n3. Click\n\n **Reset** , and then click **Reset** to confirm.\n\nClean up\n--------\n\n\nTo avoid incurring charges to your Google Cloud account for\nthe resources used on this page, follow these steps.\n\nIf you created a new project to learn about\nVertex AI Workbench managed notebooks\nand you no longer need the project, then\n[delete the project](https://console.cloud.google.com/cloud-resource-manager).\n\nIf you used an existing Google Cloud project, then delete the resources\nyou created to avoid incurring charges to your account:\n\n1. In the Google Cloud console, go to the **Managed notebooks** page.\n\n [Go to Managed notebooks](https://console.cloud.google.com/vertex-ai/workbench/managed)\n2. Select the row containing the instance that you want to delete.\n\n3. Click delete **Delete** .\n (Depending on the size of your window,\n the **Delete** button might be in\n the more_vert options menu.)\n\n4. To confirm, click **Delete**.\n\nWhat's next\n-----------\n\n- Try one of the tutorials that is included\n in your new managed notebooks instance.\n In the JupyterLab folder **File Browser** , open the **tutorials** folder,\n and open one of the notebook files.\n\n- Read the [Introduction to managed notebooks](/vertex-ai/docs/workbench/managed/introduction).\n\n- To learn more about advanced settings\n for managed notebooks instances, see [Create\n a managed notebooks instance](/vertex-ai/docs/workbench/managed/create-instance)."]]