GithubHelp home page GithubHelp logo

psychopy / workshops Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 9.0 203.47 MB

Workshop materials for the PsychoPy team

Makefile 2.59% CSS 10.81% Python 2.96% Batchfile 2.30% JavaScript 33.62% HTML 19.11% Less 14.21% SCSS 14.40%

workshops's Introduction

workshops

Workshop materials for the PsychoPy team

Build the slides/HTML/PDF

To build the output files from the .rst source files, navigate to the source folder that contains a Makefile that specifies how to build the documents from the source (e.g. the 3days or 3hrs folder), and in a terminal, type one or more of these to get the output you want:

make html
make slides
make latexpdf

Building the slides (to check the layout) requires sphinx and hieroglyph:

https://www.sphinx-doc.org/en/master/ https://github.com/nyergler/hieroglyph

Install with pip

pip install sphinx hieroglyph

Install with conda

The conda channel for hieroglyph doesn't seem to work:

conda install sphinx
pip install hieroglyph

Possible build errors

If you receive an error like this:

Could not import extension hieroglyph (exception: cannot import name 'copy_static_entry' from 'sphinx.util')

Your version of sphinx may be too recent for compatibility with hieroglyph, as it lacks the deprecated copy_static_entry() function. If so, force the installation of an older version. e.g.

pip uninstall sphinx
pip install sphinx==2.4

or:

conda uninstall sphinx
conda install sphinx=2.4

Compiling to pdf

Note that using gif images may prevent the compilation process. To avoid this you can also make a static version of the image and use the syntax:

.. only:: html
    .. image:: /_images/coder_small.gif
       :width: 100 %

.. only:: latex
    .. image:: /_images/coder_small.png
       :width: 100 %

To make the latex file you can then use:

make latex

And create the pdf in texWorks by opening the TEX file and running pdfLatex to compile to pdf.

In the source > conf.py file you will also want to change how the pdf is configured to show the date of compilation:

# JUST CHANGE THESE AND LET THE REST POPULATE
year = "2021"
release = 'September 2021'
project = u'Workshops for PsychoPy {}'.format(year)
copyright = u'{}, Open Science Tools'.format(year)
authors = u'Open Science Tools'
filebase = 'OST_Workshops'

workshops's People

Contributors

rebeccahirst avatar peircej avatar suelynnmah avatar patrickabolger avatar kimdundas avatar teparsons avatar m-macaskill avatar

Stargazers

 avatar Jorge Morales avatar

Watchers

 avatar James Cloos avatar  avatar  avatar

workshops's Issues

reorganise materials to be modular

Would be nice have the materials organised by session and then just combine them however we like with index files for the length/style of course (rather than folder for 3 days etc)

One day: might be nicer to switch to rMarkdown rather than rst/sphinx

mostly this means finding all the headings:

Heading 1
=============

and replacing with

# Heading 1

The one downside is that this enforces the level of the heading and the one nice thing
about sphinx is that you merely specify "heading" and the level implicitly determined (how many heading level specified above)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.