(LivingPreprint) Little Science, Big Science, and Beyond: How Amateurs Shape the Scientific Landscape
- 1. Sundae Theory Artist Collective, Portland State University, Oregon, USA
- 2. NeuroPoly, Polytechnique Montreal, Quebec, Canada
Description
About
NeuroLibre Living Preprint built at this reference repository/commit by roboneuro, based on the latest change by the author.
❤️ Living preprint: https://preprint.neurolibre.org/10.55458/neurolibre.00031
For the living preprints in JupyterBook format
You can simply decompress (extract) the zip file and open index.html
in your browser.
For the living preprints in MyST format
If you see the following folders after extracting the zip file, it means that the preprint is in MyST format:
site
execute
html
templates
When you open the html/index.html
file, you will be able to see the preprint content, however the static webpage components will not be properly loaded.
This is because the static HTML assets were built with a base URL following the DOI format. As a workaround, you can simply modify the following python script and save it as serve_preprint.py
:
import http.server import socketserver import os DIRECTORY= "<location-of-the-extracted-zip-file>/LivingPreprint_10.55458_neurolibre_NeuroLibre_00031_81d1eb/html" BASE_URL = "/10.55458/neurolibre.00031" class CustomHandler(http.server.SimpleHTTPRequestHandler): def translate_path(self, path): # Remove the base URL prefix from the path if path.startswith(BASE_URL): path = path[len(BASE_URL):] # Serve files from the specified directory path = os.path.join(DIRECTORY, path.lstrip("/")) return path def do_GET(self): # Check if the requested file exists file_path = self.translate_path(self.path) if not os.path.exists(file_path): # If file doesn't exist, try appending `.html` file_path += ".html" if os.path.exists(file_path): # Update the path to point to the .html file self.path += ".html" # Call the parent class's GET handler super().do_GET() # Set the port for the server PORT = 8000 with socketserver.TCPServer(("", PORT), CustomHandler) as httpd: print(f"Serving at http://localhost:{PORT}{BASE_URL}") httpd.serve_forever()---
Then you can run the script (python serve_preprint.py
) and open the given URL in your browser.
Note: The site
folder contains the living preprint as structured data (in json
format), which is being used by NeuroLibre to serve your publication as a dynamic webpage. For more details, please visit the corresponding myst documentation.
For details, please visit the corresponding NeuroLibre technical screening.
Files
LivingPreprint_10.55458_NeuroLibre_00031_81d1eb.zip
Files
(89.3 MB)
Name | Size | Download all |
---|---|---|
md5:c1e965c8e96bcd7e0d8fc68b459f6d83
|
89.3 MB | Preview Download |
Additional details
Related works
- Is part of
- Preprint: 10.55458/neurolibre.00031 (DOI)