08-04-2023 08:47 AM
Hi,
When I tried to use ipywidgets, it returns the following error.
I’m using Databricks with PrivateLink enabled on AWS, and Runtime version is 12.2 LTS.
Is there something that I need to use ipywidgets in my environment?
08-04-2023 09:09 AM - edited 08-04-2023 09:10 AM
Hi @NCat, The error message "uncaught reference error: require is not defined" indicates that the require
function is not defined in the current scope. This error can occur when using Databricks Connect with a version of Node.js that does not support the require
function.
To resolve this issue, you can try the following steps:
Sources:
- https://docs.databricks.com/dev-tools/databricks-connect-legacy.html#requirements
- https://docs.databricks.com/dev-tools/databricks-connect-legacy.html#install-databricks-connect
08-04-2023 09:15 AM
Thank you for your reply @Kaniz .
I don’t use Databricks Connect. I’m using default Notebook Editor on Databricks instead.
Is there any possible reason for the error?
08-04-2023 09:46 AM
Hi @NCat, Based on the provided information, I can see no maintenance updates or new features related to the Notebook Editor on Databricks for the given Runtime version and PrivateLink configuration.
However, there are some updates related to PrivateLink and the E2 version of the platform that might be relevant:-
AWS PrivateLink for workspaces (Public Preview) was released on April 20, 2021, which allows the provisioning secure private workspaces by creating VPC endpoints to both the front-end and back-end interfaces of the infrastructure.
The workspace must be on the E2 version of the platform.
For detailed setup instructions, see the documentation at https://docs.databricks.com/administration-guide/cloud-configurations/aws/aws-privatelink.html.
- You can update running workspaces with new configurations for credentials (AWS IAM cross-account roles) and network using the account console or the Account API. The workspace must be on the E2 version of the platform. For more information, see the documentation at https://docs.databricks.com/administration-guide/cloud-configurations/aws/update-workspace-credentia....
If you have any specific questions or issues related to the Notebook Editor or your PrivateLink configuration, please provide more details, and I will try my best to assist you.
08-04-2023 05:48 PM
Thank you for your support.
The Back-end in the PrivateLink has limited access to the public internet with a white list.
Does it have to have access to a certain website to use ipywidgets?
08-10-2023 06:25 PM
I guess ipywidgets on Databricks uses CDN, and it cannot be loaded in PrivateLink environment. Isn’t this the cause of the error?