Peoples Who Hunt Something Like JSFiddle For Jupyter Notebook. Jupyter Notebook will be wrong terminology in this context, but running Python in interactive way also does not make full sense. Jupyter Notebook is a system, for direct Jupyter Notebook, we have different ways like WordPress Plugin for Jupyter Notebook, other different methods to show Jupyter Notebooks on WordPress posts. But they are not interactive. Here is WordPress Interactive Python Widget For Python. Yes, it can show result like Jupyter Notebook in real time. Matter is about rendering the commands or rather the script in real time.
WordPress Interactive Python Widget For Python
DataCamp Light converts WordPress post page in to interactive platform by embedding widgets. It works both for both R and Python. The sessions are maintained on DataCamp’s remote servers, but of course can be installed on own server (we have not tested it). There is HTML, Js for the work of showing widget. With DataCamp Light, we can convert markdown to interactive tutorials.
Nothing is meaningful without real life examples of working and Github repo of the thing :
---
1 2 3 | https://cdn.datacamp.com/dcl/standalone-example.html https://github.com/datacamp/datacamp-light https://github.com/datacamp/datacamp-light-wordpress |
To use the thing, we actually need copy-pasting their example from GitHub in WordPress post editor in plain text mode or some way as HTML:
# This will get executed each time the exercise gets initialized
b = 6
# Create a variable a, equal to 5# Print out a
# Create a variable a, equal to 5
a <- 5
# Print out a
print(a)
test_object("a")
test_function("print")
success_msg("Great job!")
<-
) to create the variable a
.The above is not screenshot but actual console. Below is screenshot :
No, it is far from being just great. There are many wishes for something which we can say "interactive Jupyter Notebook". Yet, the thing is great example of power of Javascript and HTML.
Tagged With DataCamp Light widget , python jupyter notebook embed widget state method , python jupyter notebook to wordpress