Images in task description
Answered
I would like to include images in the task description in PyCharm Edu. Users of the course will be on a LAN without Internet access so they can't be http:// references. Where should I place the image in Course folder and how should I refer to it in the html of the task description.
Please sign in to leave a comment.
Hi!
It's a know issue. It's already been fixed https://youtrack.jetbrains.com/issue/EDU-1079
We plan to release the fix in a couple of weeks as a part of EduTools plugin. PyCharm Edu comes with this plugin, but if there is no internet connection, plugin update won't come automatically, so you need to install it manually (Settings -> Plugins -> Install from zip -> Select zip file with plugin). Plugin page where you can download plugin zip when it's released is here https://plugins.jetbrains.com/plugin/10081-edutools
I can notify you here when the update is released, if you'd like.
We plan to update PyCharm Edu with bundled new version of plugin too, but later.
The only working workaround now is to use absolute path for image files like that: <img src="file:///home/user/PycharmProjects/Python Course9/lesson1/task1/avatar.jpg">
Thanks. I will check for update in a couple of weeks.
What will be the correct method of referring to the image and where should the image be stored?
The image should be stored in corresponding task directory and referred simply by its name.