Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Task] First run experience for poetry managed single folder #735

Open
3 tasks done
lextm opened this issue Feb 17, 2024 · 0 comments
Open
3 tasks done

[Task] First run experience for poetry managed single folder #735

lextm opened this issue Feb 17, 2024 · 0 comments
Labels
ide:vscode Issues that relate to the Esbonio vscode extension

Comments

@lextm
Copy link
Contributor

lextm commented Feb 17, 2024

The user must be using VS Code to work on a single folder, which uses poetry to spin out a virtual environment.

Python dependencies added to poetry

To make sure esbonio extension works properly, this folder must have the following dependencies installed (as dev dependencies or just normal ones),

  • sphinx
  • the actual sphinx theme (such as sphinx-rtd-theme)
  • any other sphinx extensions (such as sphinx-copybutton)

esbonio shouldn't be installed, as the extension acquires it automatically from the installation folder.

Examples

Initial Steps

  1. The virtual environment must be properly configured and created,

    poetry env use 3.12
    poetry env info --path
    poetry install
  2. Once opened this folder in VS Code, the user can open conf.py and select which Python interpreter to use via Microsoft Python extension.

    The user might need to manually add the environment path using the output of poetry env info --path.

  3. Esbonio language server is notified by this change and starts to build the web pages.

Live preview and other features are also ready then.

Related Items

#736

@alcarney alcarney added the ide:vscode Issues that relate to the Esbonio vscode extension label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ide:vscode Issues that relate to the Esbonio vscode extension
Projects
None yet
Development

No branches or pull requests

2 participants