question

Upvotes
Accepted
9 3 2 3

User package development in CodeBook

In CodeBook there is a check with "import" such that a package is local "_is_local(module)" and if not, they are not allowed, with the error "RefiImportError: module 'X' is restricted".

In this case I have my package "core" and "defs" is a module within it (see screenshot below).

I have contacted support and they suggested asking here.

(Apologies for the choice of forum - there's no "CodeBook" or similar.)

rdp-apirefinitiv-data-platformcodebookpackages
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
9 3 2 3

I received a reply from support and the CodeBook dev team:

Package importing is restricted (hence the error) but module importing not.

Therefore, one must keep the module files all in the same directory (local) and import them.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.