Integration of Jupyter Notebook with Keycloak - jupyter-notebook

Is it possible to use Keycloak with Jupyter Notebook to sign in users? I am currently using signing in to Jupyter Notebooks with a password, for which I used the configuration file, but I need to switch to Keycloak.
I know that it is possible to integrate JupyterHub and Keycloak, and I did it using the existing instructions in the documentation. Are there some instructions for Jupyter Notebook too?
Thank you in advance!

Related

Deploy R application in AWS SageMaker RStudio

I have an analytics application written in R, using the Shiny package.I build the code using RStudio IDE in AWS SageMaker. Could you please guide the possible ways that I can deploy the web app in AWS and make it available in the public internet. We don't like to use ec2.
Any help would be highly appreciated.
For this, you will need RStudio Connect. Once you have a server up and running, you can connect your RStudio on SageMaker installation to that server and deploy seamlessly.
I know you say you don't like EC2, but your best bet at the moment is to follow the instructions of this blog Host RStudio Connect and Package Manager for ML development in RStudio on Amazon SageMaker on how to achieve this. It also includes CDK code, so you can kickstart and not even touch EC2 (just follow the instructions, assuming you are broadly familiar with CDK).

RSelenium in the cloud

I want to run RSelenium (CRAN web site) in a (free) cloud. I have a subscription to RStudio Cloud, but apparently is not possible to open a web browser with this service provider, given that RStudio Cloud doesn't provide those permissions.
Other alternatives I have are Google Colab and Kaggle notebooks. Is it possible to run RSelenium in Colab or Kaggle notebooks? How?

Is it possible to access a windows network or local drive from a remote Jupyter Notebook server running on Linux?

I have a web address that brings me to a remote Jupyter Notebook (Linux) server that I access from my Windows machine but need access to data on a local drive.
I have tried ssh and changing the config file, as well as changing the directory command but keep getting no location found
You can use file upload widget from ipywidgets to interact with your local storage via browser client. More info in ipywidgets docs.
You need to upload and write to the server.

Juptyer Notebooks Authentication

I'm very new to Jupyter notebooks and recently setup a dev instance with a basic password for external access. While this works fine, I need to tie it into LDAP or PAM authentication on my RHEL server.
As I started reading about this, it appears JupyterHub is the way to go with but I'm running into some issues with that setup. I did some basic configuration and I can login fine via PAM, but it says "Spawn failed" after the login page.
Ideally I'd like to stick with just notebooks + LDAP auth if possible to make things simpler. If that is not possible, can anyone help me out with what type of configuration I need for hub to frontend notebooks and just forward to the existing setup I have?
Hub is currently running on :8000
Notebooks is currently running on :8888
I also have custom themes on Notebooks that I want to keep, even if I have to use Hub.
Any help would be greatly appreciated.
Instead of using Hub, I ended up just using Apache to front end the connection and then proxy to 127.0.0.1:8888 localhost.
This allowed me to utilize LDAP auth as well as the certificates that I'm already utilizing with Apache.

Jupyter webserver, can't view directories and files

I have setup a Jupyter Notebook Server on an AWS server, using the Andaconda distribution. I can login to the Jupyter web application on the public IP address but Jupyter doesn't list the directories or files. I can see them when I am using the private IP address (using RDP into the machine).
I suspect it may have to do something with the windows accounts.
Any insight what I am missing?
Thanks in advance
So I found the answer myself. I have a Windows account specifically for the Jupyter user (Guest, Power User). I have tried adding Administrator to this account as well but it didn't resolve the issue.
The solution is even easier, you just have to run the Jupyter Notebook Server as Administrator.
There you have it if you ever run into the same issue that I had.

Resources