Skip to content

"print" is not defined when connecting with the worker from pyright-browser #888

Answered by msujew
ahmed-s-fatahallah asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @ahmed-s-fatahallah,

the pyright-browser package does not come with any builtins (i.e. also no print), as it does not have access to the file system. See also #561 (specially 1, 2, 3) which describes a solution for how to load builtins on startup.

Note that the pyright-browser package is effectively unmaintained and hasn't been updated in the last 2 years. I would recommend you to either build your own bundle or use a more popular fork of pyright which adds browser support.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ahmed-s-fatahallah
Comment options

@msujew
Comment options

Answer selected by ahmed-s-fatahallah
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
2 participants