Browse Source

Update Readme and latex-example

redis 0.1
parent
commit
5b91553c0a
3 changed files with 36 additions and 14 deletions
  1. +10
    -12
      Readme.md
  2. +10
    -2
      docker/emacs/Dockerfile
  3. +16
    -0
      examples/python/scholarly/test-scholarly.py

+ 10
- 12
Readme.md View File

@ -14,12 +14,6 @@ Then, it is possible to build the *scientifc-emacs* container by:
``` ```
$ docker build -t scientific-emacs:0.1 docker/emacs/ $ docker build -t scientific-emacs:0.1 docker/emacs/
``` ```
Write here about container Write here about container
# How to install # How to install
@ -53,12 +47,16 @@ docker run --rm -it -v`pwd`/emacs-config:/root \
the 'emacs-config' folder contains the '.emacs' configuration file the 'emacs-config' folder contains the '.emacs' configuration file
To install:
- aspell
- curl
- wget
- git
- zsh
# What is installed on the repository
The repository has previously installed
- aspell:
- curl:
- auctex:
- pdftools:
- oh-my-zshell:
-
## How to run pyhton scripts
## After first run the container ## After first run the container
Upgrade texlive to be able to install new packages by : Upgrade texlive to be able to install new packages by :


+ 10
- 2
docker/emacs/Dockerfile View File

@ -18,8 +18,9 @@ texlive-science \
texlive-bibtex-extra texlive-bibtex-extra
# useful apps # useful apps
RUN apt-get update
RUN apt-get -y install \ RUN apt-get -y install \
git \
git \
wget \ wget \
curl \ curl \
aspell \ aspell \
@ -27,7 +28,14 @@ vim \
python3 \ python3 \
elpa-pdf-tools \ elpa-pdf-tools \
auctex \ auctex \
zsh
zsh \
python3-pip
# installing python modules
RUN pip3 install pandas \
numpy \
matplotlib \
scholarly
# oh-my-zshell # oh-my-zshell
RUN sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" RUN sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"


+ 16
- 0
examples/python/scholarly/test-scholarly.py View File

@ -0,0 +1,16 @@
from scholarly import scholarly
# Retrieve the author's data, fill-in, and print
search_query = scholarly.search_author('Steven A Cholewiak')
author = next(search_query).fill()
print(author)
# Print the titles of the author's publications
print([pub.bib['title'] for pub in author.publications])
# Take a closer look at the first publication
pub = author.publications[0].fill()
print(pub)
# Which papers cited that publication?
print([citation.bib['title'] for citation in pub.citedby])

Loading…
Cancel
Save