You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/frompackage/basic_use.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,10 @@
4
4
@frompackage target import_block
5
5
```
6
6
7
-
The `@frompackage` macro takes a local Package (derived from the `target` path), loads it as
8
-
a submodule of the current Pluto workspace and then process the various
9
-
import/using statements inside `import_block` to extract varables/functions from
10
-
the local Package into the notebook workspace.
7
+
The `@frompackage` macro takes a local Package (derived from the `target` path),
8
+
loads it as a submodule of the current Pluto workspace and then process the
9
+
various import/using statements inside `import_block` to extract
10
+
varables/functions from the local Package into the notebook workspace.
11
11
12
12
!!! note
13
13
`@fromparent` is simply a convenience synthax that uses the calling notebook file as `target`. More details on how the target path is processed are given below.\
@@ -26,9 +26,10 @@ For this reason the *reload* of local code is only triggered manually within `@f
26
26
27
27
## `target` path
28
28
29
-
The first argument to `@frompackage` (`target`) has to be a String containing the path (either
30
-
absolute or relative to the file calling the macro) that points to a local
31
-
Package (the path can be to any file or subfolder within the Package folder).
29
+
The first argument to `@frompackage` (`target`) has to be an AbstractString (or
30
+
a `@raw_str`) containing the path (either absolute or relative to the file
31
+
calling the macro) that points to a local Package (the path can be to any file
32
+
or subfolder within the Package folder).
32
33
33
34
The main module of the package identified by the `target` path will be used as the module to process and load within the calling notebook
0 commit comments