Tensorboard for Tensorflow.JS under Windows 10 - tensorboard

I spent long time trying to figure out how to install and run Tensorboard on a Windows 10 machine, for projects that are using Tensorflow.JS
Has anybody ever made this work? If so, please share the steps.
I have Tensorflow.JS working fine with my GPU under Windows 10, but I cannot find any documentation for using Tensorboard under the combination of Windows + Tensorflow.JS
Environment:
Windows 10 64-bit
Node.JS v14.17.3
Python v3.8.9
Tensorflow v2.5.0
Tensorflow.JS v3.8.0
I'm using #tensorflow/tfjs-node-gpu, with RTX3080Ti, which works fine.

The documentation here shows how to integrate tfjs in node with the tensorboad. But it requires tensorboard to be aldready installed.
When using it tensorflow with python, tensorboard comes as a dependency of the tensorflow package. But using it in js requires to install the tensorboard package as a standalone package.
pip install tensorboard
So far, pip is the only way I think to install tensorboard. If the command fails, it probably must have to do with the python version, but it can be changed easily

Related

Versions of Python & Spark to work with VS Code Notebooks

I'm developing scripts for AWS Glue, and trying to mimic development environment as close as possible to their specs here. Since it's a bit costly to run a Notebook server/development endpoint, I set everything up on local machine instead, develop scripts on VS Code Notebook, due to its usefulness.
There're some troubles with Notebook setup due to incompatible versions between installed Python & Spark.
For Python, I have gone through some harsh time to clean up, and its version is 3.8.3 now
For Spark, I use the manual method with version of 2.4.3, since I plan to use Scala alongside at later time. I install the findspark package to load that version as expected.
And it doesn't work! The error was TypeError: an integer is required (got type bytes)
I've searched around, and people said to downgrade to Python 3.7 using pyenv, and I got 3.7.7 installed but still had the same error
As a last resort, I tried pip install pyspark. it's Spark 3.0.0, and works fine, but not as expected.
Hope there's someone have experiences of this matter
A better approach would be to install the glue dependencies on docker then ssh into that docker container using VS code to mimic exact glue local dev environment.
I've written a blog about the same if you like to refer
https://towardsdatascience.com/develop-glue-jobs-locally-using-docker-containers-bffc9d95bd1

C++ on Jupyter Notebook for Windows

Has anyone successfully installed and used C++ on Jupyter Notebook on a windows machine? The installation instruction here never worked for me.
conda install -c conda-forge xeus-cling
gives me
"PackagesNotFoundError: The following packages are not available from current channels:"
If anyone has succeeded in installing on Windows, could you please share your instructions? Thanks.
The "issue" is that conda-forge/xeus-cling isn't available for Windows (yet?) (as indicated on this page of conda-forge/xeus-cling on anaconda.org). You can instead use gouarin/xeus-cling (you still have to have the compatible environment, though). Of course, the online C++ Jupyter Notebook is available too.

Python 2.7.14 on Raspbian

My client has an application developed on python2.7.14, and I'm trying to run it on a raspberry.
When I run it on python2.7.9 it has some interface problems, so I installed python2.7.14 exactly as said in this link: https://tecadmin.net/install-python-2-7-on-ubuntu-and-linuxmint/
Now, when I run the application on python2.7.14 it says that I don't have module RPi.GPIO and PIL, and when I try to install/update it says it's already installed.
How can I solve this?

Automating Software installation in Amazon Windows Instance

I would like to use Amazon Windows Instance to test the compatibility of the code which is developed on Mac. I may use the instance once a month for few hours for testing purposes that's it. I don't want my instance running the whole month and costing me.
Hence I am planning to create an instance whenever I want. To test the code I have to install g++, openGL, boost libraries etc. How can do this using scripts?
I am looking for some scripts which install packages on a freshly installed Windows instance, clone the files from git, build and test the software.
For example for AWS Ubuntu instance I can do the following,
./> ssh -i KeyPairForUbuntu.pem ubuntu#instance.eu-central-1.compute.amazonaws.com
./> sudo apt install <packages>
./> git clone pathToTheGit
./> run scons scripts to build and run the project
Is there any similar way to do this for Windows?
Please give any suggestions,
Thanks
try using https://chocolatey.org/
its a package management like apt-get for windows

pyspeech not working in python 2.7

I want to make and explore the speech to text using the python. So I searched on the google about the python speech to text api I have found pyspeech at the first and found it much easy to use but even after installing it I got some problems.
1) I have installed pyspeech using command prompt easy_install speech at the c:>python27...scripts but still i am unable to run the python speech API.
2) I have also installed the base PyPI required for the pyspeech running ez_setup.py.
What is the import error you get? pyspeech also needs pywin32.
Is that package installed? Also check if Microsoft speech kit is installed.
If everything is fine, add sys.path.append(site package path) at the top of your code.