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

jupyter notebook support #424

Closed
wants to merge 0 commits into from
Closed

jupyter notebook support #424

wants to merge 0 commits into from

Conversation

DetachHead
Copy link
Owner

@DetachHead DetachHead commented Jun 18, 2024

fixes #173

stuff to address before merging:

  • we need to patch the vscode python plugin to change PYLANCE_EXTENSION_ID to "detachhead.basedpyright". if this is the only change we need to make it would be a pain if we had to fork and publish our own version just for that, maybe there's a way we can hack the official extension at runtime?
  • the vscode python plugin launches the "pylance" language server from the one bundled with the extension (ie. does not respect "basedpyright.importStrategy": "fromEnvironment"). i don't know enough about the development workflow of jupyter notebooks users to know if this is a problem or not. (ie. is type checking notebooks in CI a thing?)
  • add tests if possible

@DetachHead DetachHead force-pushed the jupyter branch 2 times, most recently from 01b122d to ab07a44 Compare June 18, 2024 13:26
Comment on lines 402 to 405
registerJupyterPythonPathFunction: (func) => {
console.log(
`registerJupyterPythonPathFunction was called. not sure what it's supposed to do with it so..... ${func}`
);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should probably try and figure out what this is before merging

@DetachHead
Copy link
Owner Author

DetachHead commented Jun 20, 2024

after looking at how ruff does it, i decided this approach sucks. instead we should add support for typechecking notebooks in the CLI and add support for them in the LSP itself, rather than trying to do it the pylance way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for Jupyter Notebook
1 participant