Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions 014_Run_JavaScript_in_Python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Open your [![Anaconda](https://img.shields.io/badge/Anaconda-342B029.svg?&style=
- pip install js2py


**[`js2py`](https://github.com/PiotrDabkowski/Js2Py)** module is used to translator JavaScript to Python & acts as a JavaScript interpreter written in 100% pure Python.
**[`js2py`](https://github.com/PiotrDabkowski/Js2Py)** module is used to translate JavaScript to Python & acts as a JavaScript interpreter written in 100% pure Python.

* It translates any valid JavaScript (ECMA Script 5.1) to Python.
* Translation is fully automatic.
Expand All @@ -42,7 +42,7 @@ Limitations:

* strict mode is ignored.
* with statement is not supported.
* Indirect call to eval will is treated as direct call to eval (hence always evals in local scope)
* Indirect call to eval will is treated as a direct call to eval (hence always evals in local scope)

Once Installed now we can import it inside our python code.

Expand All @@ -64,15 +64,15 @@ Go [**`here`**](https://github.com/milaan9/91_Python_Mini_Projects) if you aren'

![Download ZIP](https://github.com/milaan9/91_Python_Mini_Projects/blob/main/img/dnld_rep.png)

2. Extract the ZIP and open it. Unfortunately I don't have any more specific instructions because how exactly this is done depends on which operating system you run.
2. Extract the ZIP and open it. Unfortunately, I don't have any more specific instructions because how exactly this is done depends on which operating system you run.

3. Launch ipython notebook from the folder which contains the notebooks. Open each one of them

`Kernel > Restart & Clear Output`

This will clear all the outputs and now you can understand each statement and learn interactively.

If you have git and you know how to use it, you can also clone the repository instead of downloading a zip and extracting it. An advantage with doing it this way is that you don't need to download the whole tutorial again to get the latest version of it, all you need to do is to pull with git and run ipython notebook again.
If you have git and you know how to use it, you can also clone the repository instead of downloading a zip and extracting it. An advantage of doing it this way is that you don't need to download the whole tutorial again to get the latest version of it, all you need to do is to pull with git and run ipython notebook again.

---

Expand Down