notebook toolbar
index | execution_count | cell_type | toolbar | started_at | completed_at | source | loc | metadata | outputs |
---|---|---|---|---|---|---|---|---|---|
1 |
|
3 |
making ato make an interactive computing session, or a python module generally, appear like a package we need to set two varaiables. |
||||||
2 |
|
1 | 0 outputs. | ||||||
3 |
|
4 |
there is a python file one directory up called
our first transgression is not being a package. |
||||||
4 |
|
2 | 0 outputs. | ||||||
5 |
|
1 |
to be a package we need
|
||||||
6 |
|
1 | 0 outputs. | ||||||
7 |
|
5 |
the
now that we quack like a package we can attempt relative imports,
but
|
||||||
8 |
|
2 | 0 outputs. | ||||||
9 |
|
1 |
append the parent to the
|
||||||
10 |
|
1 | 0 outputs. | ||||||
11 |
|
1 |
and boom! |
||||||
12 |
|
1 | 0 outputs. | ||||||
13 |
|
3 |
how is this different fromit is probably not much different, but more a cheat code you can abuse at your own âš |