nickvazz
11/07/2022, 6:35 PMC:/some/path/notebook.ipynb
which does not render -- curious if this is supposed to happen or if I am supposed to pass some fsspec
with the dagstermill op/asset for it to be able to link/properly render 🤷rex
11/07/2022, 6:52 PMjamie
11/07/2022, 6:56 PMC:/some/path/notebook.ipynb
and when you click the View Notebook button, it opens a new tab thats blank?nickvazz
11/07/2022, 6:58 PMTo confirm, your notebook is at a path likeYep that's correctand when you click the View Notebook button, it opens a new tab thats blank?C:/some/path/notebook.ipynb
jamie
11/07/2022, 6:59 PMnickvazz
11/07/2022, 7:00 PMjamie
11/07/2022, 7:00 PMdish
11/07/2022, 7:24 PMdownload_notebook
may not currently know how to make use of a windows pathjamie
11/09/2022, 5:35 PMnickvazz
11/09/2022, 5:36 PMjamie
11/16/2022, 4:18 PMnotebook_path
to file:///Users/path/to/my/notebook.ipynb
the URL conversion we do in javascript doesn’t work. I think it’s because we’re giving a “fully qualified” path to the notebook. when I supply the path /Users/path/to/my/notebook.ipynb
the notebook renders in dagit correctly. We should probably have better support for the file://
path, but in the meantime, i think if you remove the C:
from your path it might work.
Additionally, we have a utility file_relative_path
that you can use in your python code to supply the path to your notebook without needing to give the full path. It looks like this
my_notebook = define_dagstermill_asset(
name="my_notebook",
notebook_path=file_relative_path(__file__, "../notebooks/my_notebook.ipynb"),
)
nickvazz
11/17/2022, 12:41 AMfile:///
and render the notebook as json.
he notebook renders in dagit correctly.Is it supposed to render in dagit rather than opening a new browser tab to the file?
jamie
11/17/2022, 12:43 AMnickvazz
11/17/2022, 12:44 AMif notebook_path is a file in the local file system it should render in dagit.Oh that would be cool! It seems like even with the relative path it adds back in the
C:/
to the filepathjamie
11/17/2022, 12:46 AM