-
Notifications
You must be signed in to change notification settings - Fork 65
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
Enable UC Merced hub users to select between R and Python focused images #3188
Comments
Let's use the There's no staging hub for UC merced - I think perhaps we should change that too #3150 so we can deploy things there for them to test. I think that's the easiest way to do this. |
Here's what I think is the easiest, least stressful thing for engineers to do:
Given the primary reason this is happening is because we're retiring the image we maintain that has both R and python, I think this is the easiest way to do. |
I'm happy to provide review but would like someone else to be assigned to this :) |
Thanks @yuvipanda! FYI @damianavila I need to reply to Sarvani with a date when the service will change to include the R + Python images drop-down menu. She asked me via text today. |
@GeorgianaElena is going off the support triage cycle on Tuesday, so I assigned her this one to be worked on during the Wed-Fri period of this week. I also count on @yuvipanda to provide Georgina with any help she might need. |
Thanks @damianavila. Can engineering forecast a date when the change will be deployed? Or will there be a progress milestone prior to 2i2c's capacity to forecast the deployment? Merced needs a date to plan proactive messaging for their user base. |
@colliand, since I will be away half of Thursday and Friday, I will do my best that until I then, the following milestones, based on Yuvi's feedback, will be ready for them to test:
Does this sound ok? |
Thanks @GeorgianaElena. I add @schadalapaka to the thread so that she can follow along with our progress. I expect she and her colleagues will like the plan to launch a staging hub and use it for testing prior to deploying big changes to production. Sarvani, let's aim to complete the testing of the staging hub on October 9 (more ambitiously on October 6). If that all looks good, let's pencil in the plan to deploy to production on October 12. It's never a good idea to deploy big changes on Friday! |
Hi All - Regards |
Hi All - Oct 9- 11th works for us to test. However, we request you move implementation after 9:30 am PT on the 13th to avoid conflicting with a course final exam. Hope this helps, please do not hesitate to let me know if you have any additional questions at this time. Regards, |
Given this additional context, I would suggest extending the test period from Oct 9 - Oct 13, so the instructors have the whole week to test it and then we deploy it into production on Oct 16th. |
I will check with our instructors. |
@schadalapaka, there is now a staging hub running at https://staging.ucmerced.2i2c.cloud/hub/spawn, which allows the option to choose between a Python or a R user environment. Choosing the Python image, will launch the users into JupyterLab, whereas choosing the R image will redirect them to RStudio after the server is started. Does this sound ok @schadalapaka, or would you like to use JupyterLab as the default redirect for both options, and then let the users choose to launch RStudio from there, like it's happening right now? |
Hi All-
|
Thanks @schadalapaka. Just note that I believe having the users that want to use the R profile be redirected to JupyterLab instead of RStudio might cause some confusion. This is because from the Lab interface you can choose to start RStudio, but you can also choose to start a Python notebook. Working in a Python notebook from the R server is possible, but there will be less packages available for the users and they might end up confused about this. Btw, this is how the workflow of choosing between the two profiles on the https://staging.ucmerced.2i2c.cloud hub looks like. Screen.Recording.2023-10-05.at.10.05.02.mov |
|
@schadalapaka yes the staging hub is ready for your users to start testing, using the link from #3188 (comment) |
@schadalapaka Can you share (privately to support@2i2c.org if necessary) the notebook that caused this? I just tried a simple notebook (just |
Hi All - Yes, I think starting RStudio by default would reduce the confusion. I think the next best step is for Yuvi to make the changes in the staging hub. Please let me know if this works and/or if there is any concerns with this approach. |
@schadalapaka, allowing for the users to test this more thoroughly and accommodate to the changes makes sense. I've updated the staging hub to start in RStudio by default when choosing the R image. Take the time to see how this works and please let us know when you know the new deployment to production date so we can plan around it. |
Hi All - |
Another note: At this time, there doesn't seem to be an easy way for users to switch between python and R images easily. Once we choose an image, we have to break the urls to be able to stop the server and only then will we see an option to switch to another image or select between the images. |
Notes from our staging hub testers:
|
@schadalapaka let me summarize current state of issues:
What do you think about a 30min call tomorrow Oct 18 9AM pacific (or earlier, if possible - I'm currently traveling in India, and @GeorgianaElena is in the EU) to clear things up? |
I can also be available for a call with @schadalapaka. This experience of R versus Python user confusion was anticipated and is a main reason why the multi-hub approach is better than image select drop-down for education scenarios. Thanks @yuvipanda for your generosity and clarity. |
Per jupyter/nbconvert#1328, these are the packages needed for Jupyter to be able to convert to PDF. Without it, you get unfriendly errors like [this] (2i2c-org/infrastructure#3188 (comment)). Given that the binder image includes jupyter, and texlive is included in the base, I hope it would be reasonable for the binder image to include enough texlive packages for PDF conversion to work. Otherwise, it works in RStudio but not in Jupyter.
Per jupyter/nbconvert#1328, these are the packages needed for Jupyter to be able to convert to PDF. Without it, you get unfriendly errors like [this] (2i2c-org/infrastructure#3188 (comment)). Given that the binder image includes jupyter, and texlive is included in the base, I hope it would be reasonable for the binder image to include enough texlive packages for PDF conversion to work. Otherwise, it works in RStudio but not in Jupyter.
Just heard from @colliand on slack that nobody at UC Merced is using RStudio! So earlier decision to move default to RStudio was the wrong call. Instead, we should move the default back to JupyterLab, and fix the PDF generation. |
Default back to RStudio? I'm confused by what @yuvipanda wrote above. |
Turns out they're using R with JupyterLab, and so this is far less confusing. Ref 2i2c-org#3188
@colliand sorry, I menat default back to JupyterLab. Edited to fix. |
#3290 moves the hub back to using JupyterLab as the default interface, and #3289 tracks fixing PDF generation in jupyterlab in the R image. I've opened rocker-org/rocker-versioned2#714 upstream to fix that. So to recap:
|
Per jupyter/nbconvert#1328, these are the packages needed for Jupyter to be able to convert to PDF. Without it, you get unfriendly errors like [this] (2i2c-org/infrastructure#3188 (comment)). Given that the binder image includes jupyter, and texlive is included in the base, I hope it would be reasonable for the binder image to include enough texlive packages for PDF conversion to work. Otherwise, it works in RStudio but not in Jupyter.
@schadalapaka ok, so everything except PDF conversion in R is ready for testing again. That should be hopefully sorted in a day or two. |
Thanks Yuvi for highlighting item 3 above: Users wanting to use RStudio specifically can still launch it explicitly if needed. |
Per jupyter/nbconvert#1328, these are the packages needed for Jupyter to be able to convert to PDF. Without it, you get unfriendly errors like [this] (2i2c-org/infrastructure#3188 (comment)). Given that the binder image includes jupyter, and texlive is included in the base, I hope it would be reasonable for the binder image to include enough texlive packages for PDF conversion to work. Otherwise, it works in RStudio but not in Jupyter. --------- Co-authored-by: eitsupi <50911393+eitsupi@users.noreply.github.com>
@schadalapaka @colliand we worked with upstream (rocker-org/rocker-versioned2#714) and now PDF generation works fine from inside Jupyter as well! So from our perspective the staging hub is now good to go - please keep us posted on when we can flip the switch. |
I love that feedback from Merced to 2i2c identified an upstream bug and that 2i2c has deployed upstream changes to fix the big! Thanks Merced and 2i2c engineering for making the open source ecosystem better. |
Hi Everyone - All-Clear for 2i2c to deploy changes to production after Friday 9:30 am. |
Context
UC Merced is working through a pilot with a 2i2c operated education hub service. The pilot involves courses that use R and Python. The software image that 2i2c uses to delivery R and Python is bloated and difficult to keep up to date. The situation is reminiscent of prior experience with the University of Toronto. Merced may wish to move over to multi-hub service after the pilot but wants to complete the current engagement using a single hub. The 2i2c team discussed some scenarios and shared recommendations with Merced.
Proposal
Change from the current single R + Python image to offer an image selector after login with a menu offering Merced hub users to choose between two images: an up-to-date Python-focused image and an up-to-date R-focused image.
Merced personnel have been notified that the menu is likely to create some confusion among hub users. Some students intending to work on Python related work will mistakenly select the R image, etc. Merced is developing communications and local support plans to address these risks. Merced requests that 2i2c provide a precise data and time when this change will be deployed. Merced asked if this change could be done during the week of October 2 or October 9. @colliand indicated he'd respond with a precise date pending a capacity review by 2i2c's Engineering Team. FYI @damianavila.
Updates and actions
No response
The text was updated successfully, but these errors were encountered: