python-tutorial icon indicating copy to clipboard operation
python-tutorial copied to clipboard

Errors found in the `modules and packages` notebook

Open despadam opened this issue 1 year ago • 3 comments

despadam avatar May 08 '24 11:05 despadam

It is not possible to edit hidden files via Jupyter Lab interface. The way to enable that is described here: https://jupyterlab.readthedocs.io/en/stable/user/files.html#displaying-hidden-files

yakutovicha avatar May 08 '24 12:05 yakutovicha

In exercise on installing the package specify that they need to be in the parent mypackage directory. They were already there and since the exercise asks them to execute cd mypackage then they end up in the mypackage subdirectory where the .toml file does not exist.

Also in the pip install . command the . is not very clear, most people missed it.

despadam avatar May 08 '24 12:05 despadam

(not sure about this one) In Exercise on importing from parent modules should they import from mypackage or mypackage,geometry?

despadam avatar May 08 '24 12:05 despadam

(not sure about this one) In Exercise on importing from parent modules should they import from mypackage or mypackage,geometry?

Importing from mypackage is the way to go, because mypackage.__init__.py already imports the geometry module.

yakutovicha avatar Nov 26 '24 15:11 yakutovicha