data-driven-world / d2w_mini_projects Goto Github PK
View Code? Open in Web Editor NEWMini Project templates for D2W course
License: MIT License
Mini Project templates for D2W course
License: MIT License
Some students cannot get the correct link (not recursive problem) when running flask run on Vocareum, they are not redirected to the right page and results in 404. Only some students faced this problem, TAs cannot find a solution or pinpoint the exact issue, need to investigate
before cloning, remove the cd Download
command as it does not apply in vocareum. Remove the other references to Downloads folder.
mp_sort
Assignment For Exercise 2.
Search the internet to find out how to create a Text Input field and enter the code in the line indicated. Replace that line with the correct tag and code for Text Input. Name the text input numbers. You may want to also specify some default values to appear in the text input.
The Readme.md
and the https://data-driven-world.github.io/2023/projects/sorting-app describe Pipfile.lock
present in mp_sort
after cloning but there is no such file in the repo.
Unix/MacOS
cd d2w_mini_projects/mp_sort
ls
The last command should output the following:
Readme.md
application.py
Pipfile
**Pipfile.lock**
app
as follows:
mini-project 1, windows users and mac users (edited), attention:
if pipenv install doesn't work, try python -m pipenv install,
similarly for pipenv shell, try python -m pipenv shell
MP 2 does not modify clientside.py so we can just give the javascript file.
At Exercise 1
:
The first line {% extends "base.html" %}
inherits the base.html
for some of the common elements such as the navigation bar, importing certain scripts, and CSS files. The javascript which we will transalte translate from the file serverlibrary.py
is imported in the last few lines of base.html
.
This link currently does not exist. Should we add it per project?
https://github.com/kurniawano/d2w_mini_projects/blob/master/mp_calc/DeployEB.md
Or have a folder for common md documents?
Should we include a section that includes stuff like
ModuleNotFoundError: No module named 'flask_bootstrap'
? Or just can't run flask/use transcrypt?source virtenv/bin/activate
app/static
python -m transcrypt -b target.py
<-- target being file you are transpilingexport FLASK_ENV=development
before flask run
flask run --reload --debugger
render_template('users.html', title='Users', users=usernames)
, we pass the variable username
to be used in the users.html
using some jinja templating under the name users
.Variable name should be usernames
instead of username
I’ve encountered this bug after copying in the new code for init, forms, middleware, models and routes .py files.
Specifically when I logout, the URL becomes “https://vocproxy-1-48.us-west-2.vocareum.com/proxy/5000/proxy/5000/login?next=%2Fproxy%2F5000%2Findex”, containing 2 “/proxy/5000”s rather than 1. As a result, when I log in again it gives the error message:
Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
When I remove the second “/proxy/5000”, it works and I am logged in.
How can I fix this issue? Thanks.
Regards
Anton Karve
Allow different ordering when sorting based on the second element in the jupyter notebook. See #65.
Socket.io on client-side code polls 'https://proxy.vocareum.com/socket.io/?EIO=3&transport=polling&t={ data }' instead of 'https://proxy.vocareum.com/hostip/{ voc_ip }:{ voc_port }/vocproxy/{ voc_token }/socket.io/?EIO=3&transport=polling&t={ data }', hence fails to form connection to server when running through Vocareum proxy.
Hi prof,
Noticed that for all the mini projects, the first instruction is always to clone the repo using
$ git clone https://github.com/kurniawano/d2w_mini_projects.git
However, it seems that the repo on your account is not as updated as the one at https://github.com/Data-Driven-World/d2w_mini_projects.git
.
Should the repo to clone be the one in Data-Driven-World
instead?
I realised my tests didn't pass but I was unfamiliar with jupyter notebook ><
In[*] <--- means the code is still running - I thought since i clicked through, that means the code passed already
That being said I think it can be very misleading
expr2 = EvaluateExpression("(1+2 *4- 3)* (7/5 * 6)")
assert expr2.evaluate() == 36 #3rd test
Based on the instructions is possible to iterate through self.expr
directly which will likely cause issues. It will look like when you finally pass the first 2 cases, then 3rd case which causes the [*] may appear like you also passed
expression = self.insert_space()
tokens = expression.split()
I propose that we could mention the need to do this (below) somewhere in the instructions! And perhaps just a note to students unfamiliar to jupyter like me that [*] doesn't mean pass ><
Line 50 and line 54 in routes.py
of mp_calc can be reduced to a single line.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.