I am trying to implement a search bar on my Flask web application. As I am a beginner in web programming, I have to search around for ways to do it and I saw the option to use flask_whooshalchemy. However, I have also seen people commenting about how this extension is no longer supported and it is incompatible with Python 3 (I am currently using the python 3.8.2).
I have tried installing through 'pip3 install flask-whooshalchemy' and it is said to be installed. But when I entered 'import flask_whooshalchemy' in the REPL, it gives ModuleNotFound error. I have tried to install flask_whooshalchemyplus through pip but it returns error with exit status 1.
May I ask if there is any other ways for me to implement the search bar or if I can download flask-whooshalchemy in an alternative way? Thank you in advance!
Related
I am running jupyter via anaconda in a web browser on windows. In nbextensions: I have tried,
calico-spell-check,
calico-spell-check,
spellchecker/main.
All highlight misspelled words fine but none suggest correct words.
Am I missing a set up step, my google fu is letting me down. Is there another extension that works as expected. I find it hard to believe that there is no true spell checker / corrector extension for a system designed around presenting of data, I must be missing a set up step or fundamental understanding of the system.
From what I've seen, such as this you just get highlighting in the classic Jupyter notebook interface. The limitations of what can be done with that interface is one of the reasons the current path forward for Jupyter development is JupyterLab and efforts based on similar underlying modern machinery, i.e., notebook version 7 is intended to look like the classic notebook interface while being based on the more modern components.
JupyterLab has spell check with suggestions available already added for editing markdown cells and editing markdown documents, see here. You can try it out in your browser now by going here and clicking launch binder to bring up a session where the extension is already installed and working.
For code, JupyterLab already has a nice autocomplete implementation that you'll get when you start typing a word and press tab to see suggestions. Additionally, some ideas have been offered for extending the current spell checking extension for JupyterLab to handle code cells, see tracking for this issue.
I'm trying to use Bokeh (v 12.13) in Zeppelin (0.7) on an AWS EMR cluster.
According to the documentation I've seen here, I should be able to use the notebook output handler. Git shows there was an error with this in 12.10 but this was resolved in 12.11 (https://github.com/bokeh/bokeh/issues/7179)
Trying to work around this by outputting to file, I get garbled HTML returned to the calling paragraph, and the show() task never completes - I need to manually stop it.
The answer is in the exception message:
no display hook installed for notebook type 'Zeppelin'
The Bokeh project itself does not provide or maintain Zeppelin support. It only exposes a general extension mechanism that other people can use to support different notebooks, if they choose. For Zeppelin to work, you'll need to install the third-party bkzep module:
https://github.com/zjffdu/bkzep
In another question:
Juno IDE for Julia, how to interact?
One of the answers stated:
You can't enter commands into the console in Juno--that's for displaying output. Commands can be submitted from within the editor by setting your cursor in the line to submit and pressing Ctrl+Enter or Shift+Enter. The value will then be displayed in a small popup next to the line and the output will be printed to the console if you have the console visible.
Note that the inability to use the console as you desire is by design. See here for information about the console from the Juno docs.
I am encountering an issue that might make this design decision a bit impractical at times.
First, let me say that I am new to Julia and Juno (not to coding, just trying to learn Julia now), so there might be a way to fix this and I do not know about it.
I am using the package RCall, that allows to include R code into Julia, so I am trying to install some R packages. One of the packages is asking me a "y/n:" question and I cannot answer it because I cannot access the console, and sending code from the editor to the console using command+Enter is blocked (because the console line is executing).
To reproduce this issue (note that R 3.2.0 or above needs to be installed, and I had to restart Juno after installing RCall for it to work):
Pkg.add("RCall")
Pkg.build("RCall")
restart Juno
using RCall
reval("install.packages(\"rgdal\")")
A pop-up will appear asking to select a mirror, just choose 0 and OK. Then the package is asking me if I want to install some dependencies "y/n:" and the whole execution is blocked.
I guess that this can be fixed just by using Julia from the command line (and forgetting about Juno), but I like to use IDEs.
Do you have any ideas about how to circumvent this issue? or another IDE for Julia?
I am wanting to use OpenCpu to do statistical web-based apps.
BUT, the documentation I see on the web seems to be contradictory.
Just trying to get started is difficult for a newbie.
I hope someone knows how.
I have seen some posts here on stackoverflow, and I still see contradictions.
Note that I have used Rserve in java and Rpy2 in python, and these are wrappers to R-stats.
BUT on the website I see that they say that OpenCpu is an embedded engine using HTTP.
I wish to install this OpenCpu on my local Ubuntu machine.
So my question is:
(1)Does OpenCpu server contain some embedded version of R-statistics?
SO the download contains everything i need.
OR
(2)does one have to install R-statistics separately and the OpenCpu server separately,
so hence these are 2 separate applications that talk to one another over HTTP.
So you can see that I was not able to find this kind of fundamental starting knowledge on the web.
Doing apt-get install opencpu will automatically install R. Not because it is contained, but because it is declared as a dependency, so the package manager understands it needs R, apache, etc when it installs opencpu.
Ok this is a pretty simple question. I am new to Python and have been using JES up to this point. I just downloaded Sublime 2 and love it. But in JES there was a command that would open your code in the editor in the command console (load program). I know how to open the command console (ctrl `), but is there a way other than copying and pasting to get the code into the command console?
The Ctrl` console in ST2 uses the internal version of Python that comes with the program, Python 2.6, not the system version(s) you may have installed yourself. It's fine for some stuff, but it is outdated, and there is no (easy/intended) way to install third-party modules.
SublimeREPL is what you need. It supports Python 2 and 3 (including IPython), as well as a bunch of other languages if you're a polyglot. It basically runs a Python interpreter in another tab, which you can interact with directly, just like at the command line or via IDLE, and you can also send selected text, files, lines, or blocks (functions/classes) to the running REPL. It is available through Package Control, which you should install anyway, if you haven't come across it yet.
If up to this point you've just used JES and haven't installed a version of Python from python.org then you'll want to do that before installing SublimeREPL.