This message was deleted.
# ask-anything
s
This message was deleted.
👍 1
e
The dict is added by the Jupyter plug-in automatically. Perhaps the plug-in isn't working. You can manually add the dict with “ploomber nb -i”
Feel free to ask any other questions!
g
ploomber nb -i
works! Thanks.
meerkat 1
By the pass, what is the jupyter plugin you mentioned?
e
It's an integration that automatically injects the product variable. It should Install automatically but sometimes it needs extra steps to activate depending on your setup
g
I have checked the doc. After
jupyter serverextension list
, it outputs:
Copy code
ploomber enabled
    - Validating...
      ploomber 0.19.6 ok
ploomber jupyter extension should work. But it did not work. Additional
ploomber nb -i
is required.
e
do you any ploomber-related logs? in the jupyter console (the windows where you start jupyter)
g
I checked the ploomber-related logs, including: ploomber | extension was successfully linked. [Ploomber] setting content manager to PloomberContentsManager ploomber | extension was successfully loaded. However, it does not work. Neither in a new conda env with only ploomber and jupyterlab. 😟
e
do you see any other logs when opening a file that is part of the pipeline. Example, try downloading
ploomber examples ml-basic -o example
, then move to the example folder, right click on fit.py then "open as notebook" and see if new logs appear when you click on "open as notebook"
g
I work on Windows 10. After test
ploomber examples -n templates/ml-basic -o ml-example
in
C:/
and
D:/
drives respectively, I think I can locate the problem. My own code report the same error. In dirve D:/, after "open as notebook", inject cell failed. Errors are:
Copy code
[I 2022-06-17 16:58:03.926 ServerApp] [Ploomber] Requested model: 0000CodeOngoing/ploomber/demo100/scripts/get.py. Looking for DAG with root dir: D:\
[E 2022-06-17 16:58:03.928 ServerApp] [Ploomber] An error occured when trying to initialize the pipeline. Cells won't be injected until your pipeline processes correctly. See error details below.
    Traceback (most recent call last):
      File "C:\ProgramData\Anaconda3\envs\ag10\lib\site-packages\ploomber\jupyter\manager.py", line 129, in load_dag
        path) = loader.lazily_load_entry_point(
      File "C:\ProgramData\Anaconda3\envs\ag10\lib\site-packages\ploomber\util\loader.py", line 37, in lazily_load_entry_point
        spec, path, _ = _default_spec_load(starting_dir=starting_dir,
      File "C:\ProgramData\Anaconda3\envs\ag10\lib\site-packages\ploomber\util\loader.py", line 79, in _default_spec_load
        path_to_entry_point = default.entry_point(root_path=root_path)
      File "C:\ProgramData\Anaconda3\envs\ag10\lib\site-packages\ploomber\util\default.py", line 200, in entry_point
        return entry_point_with_name(root_path=root_path, name=filename)
      File "C:\ProgramData\Anaconda3\envs\ag10\lib\site-packages\ploomber\util\default.py", line 132, in entry_point_with_name
        return relpath(Path(project_root, filename), Path().resolve())
      File "C:\ProgramData\Anaconda3\envs\ag10\lib\ntpath.py", line 703, in relpath
        raise ValueError("path is on mount %r, start on mount %r" % (
    ValueError: path is on mount 'D:', start on mount 'C:'
[I 2022-06-17 16:58:04.184 ServerApp] Kernel started: b3cb7424-b7ac-4722-aeae-c19f1348cb75
[IPKernelApp] ERROR | No such comm target registered: jupyter.widget.control
However, in drive
C:/
, with the same code, it works fine.
But I don't know how to fix it 🤣
e
this looks like a bug. can you open an issue? please include the full error message that you posted here
g
OK. I will open an issue soon.