active-calculus / active-calculus-vector

Vector calculus materials to accompany Active Calculus Multivariable
5 stars 10 forks source link

Knowls not loading #21

Closed nelong closed 4 years ago

nelong commented 4 years ago

@mitchkeller I think you have a fix for this and wanted to check. Knowls are loading empty in most settings for me. I don't remember what the cause of this is or if there is a general fix. Let me know if you know what to do.

mitchkeller commented 4 years ago

The knowls that load something whose original location is elsewhere in the book (so an xref to a figure or theorem, for instance) will show empty when viewing as a file. Knowls for things born there (solution to an example, for instance) will show up fine. You need to run python3 -m http.server --bind 127.0.0.1 in your HTML output directory (or just python if your system python is a python 3 instance). Then you can go to http://localhost:8000 in your browser. If you want to use a port other than 8000, insert it before the --bind 127.0.0.1 portion of the command.

nelong commented 4 years ago

So that works great for one instance of PreTeXt. I'm working at three ptx projects right now. Do I use a different port for each project so that I can access each of these separately?

mitchkeller commented 4 years ago

Yup! When I was looking at both my branch and yours, I had mine on port 8000 and yours on 6565.

nelong commented 4 years ago

In reading your answer, so much of the backend server stuff made sense. I have no idea why I didn't put stuff together but I feel like I'm "getting" it now.

On Mon, Jun 29, 2020 at 11:28 AM Mitchel T. Keller notifications@github.com wrote:

Yup! When I was looking at both my branch and yours, I had mine on port 8000 and yours on 6565.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/active-calculus/active-calculus-vector/issues/21#issuecomment-651227708, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG4HO46LVAH65IEZF2QRZ4TRZC6LHANCNFSM4OLJODZQ .

mitchkeller commented 4 years ago

Closing this, since it's resolved. Will continue to exist in the closed issues in case that python one-liner needs to be found again.