Thanks in advance.
Module: AI Python for Beginners: Working with Your Own Data and Documents in Python.
Lesson 2: Loading and using your own data lesson.
The example code works meaning, it runs without errors and gives the expected results. This code allowed me to see the contents of the current working directory:
from helper_functions import upload_txt_file, list_files_in_directory, print_llm_response
list_files_in_directory()
All subsequent code executions were successful until I tried to run:
upload_txt_file()
When I executed this code, no dialog appeared to allow me to upload my own document, and I received no errors in the learning module output.
In Microsoft Edge Version 128.0.2739.67, I set https://deeplearning.ai to âAllowâ, in Pop-ups and redirects, but I still donât get a dialog.
DevTools shows this but I donât know what to do based on info below.
utils.js:930 Could not open comm â Error: Class jupyter.widget not found in registry at utils.js:894:1 at new Promise () at Object.load_class (utils.js:879:1) at CommManager.comm_open (comm.js:84:1) at i (jquery.min.js:2:1) at Kernel._handle_iopub_message (kernel.js:1239:1) at Kernel._finish_ws_message (kernel.js:1018:1) at kernel.js:1009:1
(anonymous) | @ | utils.js:930 | |
---|---|---|---|
Promise.then | |||
CommManager.comm_open | @ | comm.js:85 | |
i | @ | jquery.min.js:2 | |
Kernel._handle_iopub_message | @ | kernel.js:1239 | |
Kernel._finish_ws_message | @ | kernel.js:1018 | |
(anonymous) | @ | kernel.js:1009 | |
Promise.then | |||
Kernel._handle_ws_message | @ | kernel.js:1009 | |
i | @ | jquery.min.js:2 |
kernel.js:1010 Couldnât process kernel message
-
WrappedError {stack: âError: Could not open comm\n at new WrappedErrorâŚ1f85fdc965acdbbc5fce38ee4bf47f5d089ee701:25058:33â, message: âCould not open commâ, error_stack: Array(2)}
-
error_stack: (2) [Error: Class jupyter.widget not found in registry at https://s172-29-64-250p8888.lab-aws-produâŚ, Error: Could not open comm at new WrappedError (https://s172-29-64-250p8888.lab-aws-production.âŚ]
-
message: âCould not open commâ
-
stack: âError: Could not open comm\n at new WrappedError (https://s172-29-64-250p8888.lab-aws-production.deeplearning.ai/static/notebook/js/main.min.js?v=da6fdacc23c7ac46e15a86ffb0ccf9c624fc2ff4b960e57504d1e8c8a2d7d16cf7a121c8a9c6cd44ffc181991f85fdc965acdbbc5fce38ee4bf47f5d089ee701:24979:25)\n at https://s172-29-64-250p8888.lab-aws-production.deeplearning.ai/static/notebook/js/main.min.js?v=da6fdacc23c7ac46e15a86ffb0ccf9c624fc2ff4b960e57504d1e8c8a2d7d16cf7a121c8a9c6cd44ffc181991f85fdc965acdbbc5fce38ee4bf47f5d089ee701:25058:33â
-
[[Prototype]]: Error
(anonymous) | @ | kernel.js:1010 | |
---|---|---|---|
Promise.catch | |||
Kernel._handle_ws_message | @ | kernel.js:1010 | |
i | @ | jquery.min.js:2 |