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 pipenv managed single folder #734

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

[Task] First run experience for pipenv managed single folder #734

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 pipenv to spin out a virtual environment.

Python dependencies added to pipenv

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. (Optional) Use a tool like pyenv to set local Python version,

    pyenv local 3.12
  2. The virtual environment must be properly configured and created,

    pipenv install

    The Python version used for this virtual environment is specified in Pipfile.

  3. Once opened this folder in VS Code, the user can open conf.py and select which Python interpreter to use via Microsoft Python extension.

  4. 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