njpipeorgan / wolfram-language-notebook

Notebook support for Wolfram Language in VS Code
Apache License 2.0
159 stars 11 forks source link

[Question/Feature Request] Importing an .wl file from workspace path #58

Open Abastro opened 10 months ago

Abastro commented 10 months ago

Is your feature request related to a problem? I am trying to import a script file, which imo should be fairly straightforward. Thing is, the environment does not seem to recognize either the workspace path or the path. How do I import a .wl script file located in the workspace path? I desire to avoid hard-coding the path manually myself.

Describe the solution you'd like I want a straightforward way to import .wl script file in workspace directory. If that is hard, I would like some way to access the workspace directory inside the wlnb.

Additional context In mathematica, I am using the NotebookDirectory[] to get access to the directory. This does not work for obvious reasons: Screenshot from 2023-11-16 22-47-42